How to handle go dependencies

Kurt Jaeger pi at freebsd.org
Sun Jun 23 10:47:22 UTC 2019


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-}

-- 
pi at opsec.eu            +49 171 3101372                    One year to go !


More information about the freebsd-ports mailing list