Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 4 Aug 2023 00:39:38 +0200
From:      Robert Clausecker <fuz@fuz.su>
To:        Nuno Teixeira <eduardo@freebsd.org>
Cc:        Moin Rahman <bofh@freebsd.org>, FreeBSD Mailing List <freebsd-ports@freebsd.org>
Subject:   Re: How to get a specific GO_MODULE tag (MODVERSION)
Message-ID:  <ZMwsqstV_5Ug20GD@fuz.su>
In-Reply-To: <CAFDf7UK-wWngsh9Rax4FULknYj_AMiB%2BGhUEKCxSzH=DjdA_dA@mail.gmail.com>
References:  <CAFDf7UK-wWngsh9Rax4FULknYj_AMiB%2BGhUEKCxSzH=DjdA_dA@mail.gmail.com>

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

I use this command:

    go list -m -f '{{.Version}}' package@githash

e.g.

    go list -m -f '{{.Version}}' github.com/gopasspw/gopass@8c666a93d844015cca992be0ab0c39992bb096ed

This works with anything git understands.  Most importantly,
it also does the right thing for pseudo-versions inbetween
tagged releases.

Yours,
Robert Clausecker

Am Wed, Aug 02, 2023 at 10:18:13AM +0100 schrieb Nuno Teixeira:
> Hello,
> 
> I'm trying to get access to a go.mod no tagged that contains fixes that I
> need to try.
> 
> security/gopass
> https://github.com/gopasspw/gopass
> and the module that I want to get is from commit
> https://github.com/gopasspw/gopass/commit/8c666a93d844015cca992be0ab0c39992bb096ed
> 
> I've see some examples of ports doing this like devel/lab:
> 
> USES=           go:modules
> MODVERSION=     0.25.2-0.20230225220034-98c3f01c08e1
> GO_MODULE=      github.com/zaquestion/lab@v${MODVERSION}
> 
> My question is: how do I get vX.0.0-yyyymmddhhmmss-abcdefxyz,
> especially yyyymmddhhmmss
> that it is recomended not be created by hand.
> 
> in https://jfrog.com/blog/go-big-with-pseudo-versions-and-gocenter/
> 
> Thanks!
> -- 
> Nuno Teixeira
> FreeBSD Committer (ports)

-- 
()  ascii ribbon campaign - for an 8-bit clean world 
/\  - against html email  - against proprietary attachments



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