Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 23 Jun 2019 08:16:04 -0500
From:      Dmitri Goutnik <dg@syrec.org>
To:        Kurt Jaeger <pi@freebsd.org>
Cc:        Tobias Kortkamp <tobik@freebsd.org>, FreeBSD Ports <freebsd-ports@freebsd.org>
Subject:   Re: How to handle go dependencies
Message-ID:  <20190623131604.GD40599@xombo.localdomain>
In-Reply-To: <20190623104722.GN5902@home.opsec.eu>
References:  <5d0e8e03.1c69fb81.5e249.9640@mx.google.com> <CAP7rwchtYTf5XPoTgk6B2drdPjzP%2B5opq-sN=kGsTJei6dT_Dg@mail.gmail.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>

next in thread | previous in thread | raw e-mail | index | archive | help
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20190623131604.GD40599>