From owner-freebsd-ports@freebsd.org Sat Jul 6 19:48:45 2019 Return-Path: Delivered-To: freebsd-ports@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id D19D115D0C97 for ; Sat, 6 Jul 2019 19:48:45 +0000 (UTC) (envelope-from dg@syrec.org) Received: from mail.syrec.org (mail.syrec.org [165.227.215.120]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 731CC745C5 for ; Sat, 6 Jul 2019 19:48:45 +0000 (UTC) (envelope-from dg@syrec.org) Received: from xombo.localdomain (unknown [186.43.130.13]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.syrec.org (Postfix) with ESMTPSA id 546621F83E; Sat, 6 Jul 2019 14:48:38 -0500 (-05) Date: Sat, 6 Jul 2019 14:48:35 -0500 From: Dmitri Goutnik To: Matthias Fechner Cc: freebsd-ports@freebsd.org Subject: Re: How to handle go dependencies Message-ID: <20190706194835.GA86243@xombo.localdomain> Mail-Followup-To: Matthias Fechner , freebsd-ports@freebsd.org References: <5d0e8e03.1c69fb81.5e249.9640@mx.google.com> <20190622205205.GB40599@xombo.localdomain> <4de2a97c-8c41-74e4-cda1-4fdec9554e8f@fechner.net> <20190623095737.GA89814@urd.tobik.me> <20190623214048.GE40599@xombo.localdomain> <07e99b4c-cf7e-49bb-d0a0-66a24c3a563f@fechner.net> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <07e99b4c-cf7e-49bb-d0a0-66a24c3a563f@fechner.net> User-Agent: Mutt/1.12.1 (2019-06-15) X-Rspamd-Queue-Id: 731CC745C5 X-Spamd-Bar: ------ X-Spamd-Result: default: False [-6.97 / 15.00]; NEURAL_HAM_MEDIUM(-1.00)[-1.000,0]; NEURAL_HAM_SHORT(-0.97)[-0.975,0]; REPLY(-4.00)[]; NEURAL_HAM_LONG(-1.00)[-1.000,0] X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 06 Jul 2019 19:48:46 -0000 Hi Matthias, On 19-07-06 19:52:04, Matthias Fechner wrote: > I used now USES= gmake |go:no_targets| In addition to `no_targets`, you'd also want a `modules` arg : -USES= gmake go:no_targets +USES= gmake go:modules,no_targets It adds -mod=vendor build flag that tells Go to not try to download anything and assume that all dependencies are already in vendor directory. Best regards, -- Dmitri Goutnik dg@syrec.org