Gentoo Archives: gentoo-dev

From: "Michał Górny" <mgorny@g.o>
To: gentoo-dev@l.g.o
Subject: Re: [gentoo-dev] [PATCH 1/3] go-module.eclass: introduce new eclass to handle go modules
Date: Thu, 12 Sep 2019 21:10:59
Message-Id: f10dc3d049a25217021e8de967003f7e1f843c34.camel@gentoo.org
In Reply to: Re: [gentoo-dev] [PATCH 1/3] go-module.eclass: introduce new eclass to handle go modules by Kent Fredric
1 On Fri, 2019-09-13 at 08:16 +1200, Kent Fredric wrote:
2 > On Thu, 12 Sep 2019 19:03:02 +0200
3 > Michał Górny <mgorny@g.o> wrote:
4 >
5 > > ebuild spire-0.8.1.ebuild fetch
6 > > tar -xf ${DISTDIR}/spire-0.8.1.tar.gz
7 > > cd spire-0.8.1/
8 > > go mod vendor
9 > > cd ../
10 > > tar -cf spire-0.8.1-vendor.tar spire-0.8.1/vendor
11 > >
12 > > Now you don't need special src_prepare() to unpack it.
13 >
14 > Of course, that means if spire-0.8.1 and spire-0.8.2 use identical
15 > vendor dirs, you can no longer trivially bump the version on the dist
16 > without a manual re-tar.
17
18 It also means you won't mistakenly re-tar with old vendor because you
19 forget to do the whole magic. Or just re-tar with wrong tag checked
20 out.
21
22 --
23 Best regards,
24 Michał Górny

Attachments

File name MIME type
signature.asc application/pgp-signature