Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 23 Jun 2019 11:57:37 +0200
From:      Tobias Kortkamp <tobik@freebsd.org>
To:        Matthias Fechner <idefix@fechner.net>
Cc:        Adam Weinberger <adamw@adamw.org>, Bernhard Froehlich <decke@bluelife.at>, FreeBSD Ports <freebsd-ports@freebsd.org>, "Danilo G. Baio" <dbaio@freebsd.org>
Subject:   Re: How to handle go dependencies
Message-ID:  <20190623095737.GA89814@urd.tobik.me>
In-Reply-To: <4de2a97c-8c41-74e4-cda1-4fdec9554e8f@fechner.net>
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>

next in thread | previous in thread | raw e-mail | index | archive | help

--ikeVEW9yuYc//A+q
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On Sun, Jun 23, 2019 at 11:47:41AM +0200, Matthias Fechner wrote:
> Am 22.06.2019 um 22:52 schrieb Dmitri Goutnik:
> > Can be further simplified by using USES=3Dgo:modules. This will remove =
the need=20
> > to modify MAKE_ENV as go.mk will then add -mod=3Dvendor flag automagica=
lly.
>=20
> very interesting.
>=20
> I also found a nice mechanism in devel/bingo.
> It has a very nice awk script to generate the GH_TUPLE line
> automatically (see Makefile target gomod-deps).

Please do not use it.  It is broken in many ways.  Use Dimtri's
devel/modules2tuple instead.  Change to WRKSRC of your port and run
`go mod vendor` then `modules2tuple vendor/modules.txt` and it will
spit out an appropriate GH_TUPLE etc.

> But I have now the problem that my source is hosted on gitlab, so I use
> `USE_GITLAB`.
> It seems to make problem if I try to also use `USE_GITHUB`.
>=20
> I see now the following problem:
> make: "/usr/ports/Mk/bsd.sites.mk" line 602: warning: duplicate script
> for target "git-clone-DEFAULT" ignored
> make: "/usr/ports/Mk/bsd.sites.mk" line 466: warning: using previous
> script for "git-clone-DEFAULT" defined here
> make: "/usr/ports/Mk/bsd.sites.mk" line 603: warning: duplicate script
> for target "git-clone-DEFAULT" ignored
> make: "/usr/ports/Mk/bsd.sites.mk" line 466: warning: using previous
> script for "git-clone-DEFAULT" defined here
> pkg-static: /tmp/pkgs/gitaly-1.47.0.txz: No such file or directory
> pkg-static: Was 'pkg install /tmp/pkgs/gitaly-1.47.0.txz' meant?
>=20
> Can I use GITLAB too fetch the main archive and use GITHUB to fetch the
> go packages I need?

Probably you need

USE_GITHUB=3D	nodefault

and it should work.

--ikeVEW9yuYc//A+q
Content-Type: application/pgp-signature; name="signature.asc"

-----BEGIN PGP SIGNATURE-----

iQGTBAEBCgB9FiEElXvTEJc6ePgdQuobpPCftzzFH2EFAl0PTQ1fFIAAAAAALgAo
aXNzdWVyLWZwckBub3RhdGlvbnMub3BlbnBncC5maWZ0aGhvcnNlbWFuLm5ldDk1
N0JEMzEwOTczQTc4RjgxRDQyRUExQkE0RjA5RkI3M0NDNTFGNjEACgkQpPCftzzF
H2Hj/Af8C76awR5AZoazXSgWapg8mt+tlvZSoip2Wgw43EQPQeZyEBeZg2nZjuzF
u4Fl2fr1+rGr8UlO1cJMLzSeGzQB6nn90pchwZZsfMo21h2TawVDs7Xji4IIJQqE
6bNjsW4p+WViw0L2WNta5idStkHmuGUu/x/2PYOQEgV/LZQEhgRmz20zoqyizGA5
hYW763an4cwnIsOyLzKtr61n9CIsUUi86CYYicEnHaolGhaiUCIyc8EADNte9GI+
tOZfiZqHf2TU5SdrxtVp9JZz05JcQn9dpkXE4Gk/ZuAIc0PITmHeuksy2IjA6+xN
WuMElUfmOcVTckjaxr2sXnwDiV06Dg==
=i5gc
-----END PGP SIGNATURE-----

--ikeVEW9yuYc//A+q--



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