Hello Robert!
$ go list -m -f '{{.Version}}'
github.com/gopasspw/gopass@8c666a93d844015cca992be0ab0c39992bb096ed
$ v1.15.7-0.20230801080807-8c666a93d844
Perfect!
I've just noted this awesome cmd and start using it when needed.
Thanks very much,
Robert Clausecker <[email protected]> escreveu no dia quinta, 3/08/2023 à(s) 23:39:
> 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}
> <http://github.com/zaquestion/lab@v$%7BMODVERSION%7D>
> >
> > 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
>
--
Nuno Teixeira
FreeBSD Committer (ports)