Re: How to get a specific GO_MODULE tag (MODVERSION)
- In reply to: Moin Rahman : "Re: How to get a specific GO_MODULE tag (MODVERSION)"
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Thu, 03 Aug 2023 10:00:02 UTC
Hello I've managed to make it to work! Really nice feature. My mistake is that I was using a wrong TS because I didn't adjusted time zone: Commit: Tue Aug 1 *10*:08:07 2023 *+0200* TS: is 20230801*08*0807 ---------------- -^ not 20230801*10*0807 --------------------^ :) Thanks very much for explanation! Moin Rahman <bofh@freebsd.org> escreveu no dia quinta, 3/08/2023 à(s) 02:13: > > > On Aug 2, 2023, at 11:18 AM, Nuno Teixeira <eduardo@freebsd.org> wrote: > > 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/ > > 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. > > > vX.0.0 = The next version that might be upcoming where I will consider it > is 1.15.7 > yyyymmddhhmmss = The commit date and time for this case you can try > 20230801000000 > abcdefxyz = Commit hash which is 8c666a93d844015cca992be0ab0c39992bb096ed > <https://github.com/gopasspw/gopass/commit/8c666a93d844015cca992be0ab0c39992bb096ed> > > But above all different go applications has different methods so try which > one actually works. I believe I extracted the exact TS from the git log. > > > in https://jfrog.com/blog/go-big-with-pseudo-versions-and-gocenter/ > > Thanks! > -- > Nuno Teixeira > FreeBSD Committer (ports) > > > -- Nuno Teixeira FreeBSD Committer (ports)