On Fri, 2019-09-13 at 08:16 +1200, Kent Fredric wrote:
> On Thu, 12 Sep 2019 19:03:02 +0200
> Michał Górny <mgo...@gentoo.org> wrote:
> 
> > ebuild spire-0.8.1.ebuild fetch
> > tar -xf ${DISTDIR}/spire-0.8.1.tar.gz
> > cd spire-0.8.1/
> > go mod vendor
> > cd ../
> > tar -cf spire-0.8.1-vendor.tar spire-0.8.1/vendor
> > 
> > Now you don't need special src_prepare() to unpack it.
> 
> Of course, that means if spire-0.8.1 and spire-0.8.2 use identical
> vendor dirs, you can no longer trivially bump the version on the dist
> without a manual re-tar.

It also means you won't mistakenly re-tar with old vendor because you
forget to do the whole magic.  Or just re-tar with wrong tag checked
out.

-- 
Best regards,
Michał Górny

Attachment: signature.asc
Description: This is a digitally signed message part

Reply via email to