From owner-freebsd-ports@freebsd.org Sun Jun 23 13:16:08 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 D9DA915D087B for ; Sun, 23 Jun 2019 13:16:08 +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 807838A0FA; Sun, 23 Jun 2019 13:16:08 +0000 (UTC) (envelope-from dg@syrec.org) Received: from xombo.localdomain (unknown [186.43.128.115]) (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 3BDD64A920; Sun, 23 Jun 2019 08:16:07 -0500 (-05) Date: Sun, 23 Jun 2019 08:16:04 -0500 From: Dmitri Goutnik To: Kurt Jaeger Cc: Tobias Kortkamp , FreeBSD Ports Subject: Re: How to handle go dependencies Message-ID: <20190623131604.GD40599@xombo.localdomain> Mail-Followup-To: Kurt Jaeger , Tobias Kortkamp , FreeBSD Ports References: <5d0e8e03.1c69fb81.5e249.9640@mx.google.com> <20190622205205.GB40599@xombo.localdomain> <4de2a97c-8c41-74e4-cda1-4fdec9554e8f@fechner.net> <20190623095737.GA89814@urd.tobik.me> <20190623103000.GM5902@home.opsec.eu> <20190623103335.GA5947@urd.tobik.me> <20190623104722.GN5902@home.opsec.eu> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20190623104722.GN5902@home.opsec.eu> User-Agent: Mutt/1.12.0 (2019-05-25) X-Rspamd-Queue-Id: 807838A0FA X-Spamd-Bar: ------ X-Spamd-Result: default: False [-6.99 / 15.00]; NEURAL_HAM_MEDIUM(-1.00)[-0.999,0]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; REPLY(-4.00)[]; NEURAL_HAM_SHORT(-0.99)[-0.990,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: Sun, 23 Jun 2019 13:16:09 -0000 On 19-06-23 12:47:22, Kurt Jaeger wrote: > Hi! > > [...] > > > can't load package: package github.com/osrg/gobgp/gobgpd: cannot find package "github.com/osrg/gobgp/gobgpd" in any of: > > > /usr/local/go/src/github.com/osrg/gobgp/gobgpd (from $GOROOT) > > > /home/pi/m/net/gobgp/work/src/github.com/osrg/gobgp/gobgpd (from $GOPATH) > > > *** Error code 1 > > > > You need USES=go:modules not just USES=go. > > Thanks. This changes the 'cd' at the beginning from > > cd /home/pi/m/net/gobgp/work/src/github.com/osrg/gobgp > > to > > cd /home/pi/m/net/gobgp/work/gobgp-2.5.0 > > and with a slightly different error: > > can't load package: package github.com/osrg/gobgp/gobgp: cannot find package "." in: > /home/pi/m/net/gobgp/work/gobgp-2.5.0/gobgp > > I do not think that I understand what's going on 8-} > It appears that upstream moved gobgp and gobgpd packages to ./cmd, so GO_TARGET needs to be updated: -GO_TARGET= ${GO_PKGNAME}/gobgp \ - ${GO_PKGNAME}/gobgpd +GO_TARGET= ./cmd/gobgp \ + ./cmd/gobgpd -- Dmitri Goutnik dg@syrec.org