Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 22 Jun 2019 11:47:43 -0600
From:      Adam Weinberger <adamw@adamw.org>
To:        Bernhard Froehlich <decke@bluelife.at>
Cc:        "Danilo G. Baio" <dbaio@freebsd.org>, FreeBSD Ports <freebsd-ports@freebsd.org>,  Matthias Fechner <idefix@fechner.net>
Subject:   Re: How to handle go dependencies
Message-ID:  <CAP7rwciz1bNOV5=EfBwH_6tCKbuBgg7tDTk_-MBpfnApyBr57A@mail.gmail.com>
In-Reply-To: <5d0e610d.1c69fb81.9d081.8e65@mx.google.com>
References:  <5d0e610d.1c69fb81.9d081.8e65@mx.google.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Sat, Jun 22, 2019 at 11:10 AM Bernhard Froehlich <decke@bluelife.at> wro=
te:
>
>
> Am 22.06.2019 17:56 schrieb Adam Weinberger <adamw@adamw.org>:
> >
> > On Sat, Jun 22, 2019 at 8:21 AM Danilo G. Baio <dbaio@freebsd.org> wrot=
e:
> > >
> > > On Sat, Jun 22, 2019 at 11:58:49AM +0200, Matthias Fechner wrote:
> > > > Dear all,
> > > >
> > > > I just prepare the gitlab-ce upgrade to version 12.0.0.
> > > > But I have some problem with a package that uses go to compile.
> > > >
> > > > The new version of devel/gitaly has changed the way the package is =
defined.
> > > > They removed now all files from the vendor/ folder and add dependen=
cies
> > > > in a `go.mod` file.
> > > >
> > > > If I now build the port it tries to fetch the files while no networ=
k
> > > > access is allowed.
> > > >
> > > > What is the correct way to getting these dependencies fetched and
> > > > correctly included into the work-source in the fetch step using go?
> > > >
> > > > Thanks a lot!
> > > >
> > > > Gru=C3=9F
> > > > Matthias
> > > >
> > >
> > > Try this and remove the go.mod file
> > >
> > > ports-mgmt/modules2tuple
> > > https://github.com/dmgk/modules2tuple
> > >
> > > Examples:
> > > net/geoipupdate
> > > shells/antibody
> >
> > Just a note here, both those ports are mine, and I have no idea if
> > that's the right thing to do; it built right so I did it. I don't
> > understand Go packaging at all, and I'd sure appreciate someone with
> > Go knowledge verifying whether removing go.mod is the proper thing to
> > do.
>
> The correct magic that you are searching is:
>
> MAKE_ENV+=3D GOFLAGS=3D-mod=3Dvendor
>
> (like it is used in mail/smtprelay)

With that I still get:

$GOPATH/go.mod exists but should not
*** Error code 1

Stop.

# Adam


--=20
Adam Weinberger
adamw@adamw.org
https://www.adamw.org



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAP7rwciz1bNOV5=EfBwH_6tCKbuBgg7tDTk_-MBpfnApyBr57A>