Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 2 Aug 2023 17:17:15 +0200
From:      Moin Rahman <bofh@freebsd.org>
To:        Nuno Teixeira <eduardo@freebsd.org>
Cc:        FreeBSD Mailing List <freebsd-ports@freebsd.org>
Subject:   Re: How to get a specific GO_MODULE tag (MODVERSION)
Message-ID:  <73C236CB-747A-40B0-9DCA-9E635D1CA823@freebsd.org>
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

--Apple-Mail=_0F7D1151-8DB5-4A93-A828-D3450FE54F41
Content-Transfer-Encoding: quoted-printable
Content-Type: text/plain;
	charset=us-ascii



> On Aug 2, 2023, at 11:18 AM, Nuno Teixeira <eduardo@freebsd.org> =
wrote:
>=20
> Hello,
>=20
> I'm trying to get access to a go.mod no tagged that contains fixes =
that I need to try.
>=20
> security/gopass
> https://github.com/gopasspw/gopass =
<https://github.com/gopasspw/gopass>;
> and the module that I want to get is from commit =
https://github.com/gopasspw/gopass/commit/ =
<https://github.com/gopasspw/gopass/commit/>;
>=20
> I've see some examples of ports doing this like devel/lab:
>=20
> USES=3D           go:modules
> MODVERSION=3D     0.25.2-0.20230225220034-98c3f01c08e1
> GO_MODULE=3D      github.com/zaquestion/lab@v${MODVERSION} =
<http://github.com/zaquestion/lab@v$%7BMODVERSION%7D>;
>=20
> 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 =3D The next version that might be upcoming where I will consider =
it is 1.15.7
yyyymmddhhmmss =3D The commit date and time for this case you can try =
20230801000000
abcdefxyz =3D Commit hash which is =
8c666a93d844015cca992be0ab0c39992bb096ed =
<https://github.com/gopasspw/gopass/commit/8c666a93d844015cca992be0ab0c399=
92bb096ed>

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/ =
<https://jfrog.com/blog/go-big-with-pseudo-versions-and-gocenter/>;
>=20
> Thanks!
> --=20
> Nuno Teixeira
> FreeBSD Committer (ports)


--Apple-Mail=_0F7D1151-8DB5-4A93-A828-D3450FE54F41
Content-Transfer-Encoding: quoted-printable
Content-Type: text/html;
	charset=us-ascii

<html><head><meta http-equiv=3D"Content-Type" content=3D"text/html; =
charset=3Dus-ascii"></head><body style=3D"word-wrap: break-word; =
-webkit-nbsp-mode: space; line-break: after-white-space;" class=3D""><br =
class=3D""><div><br class=3D""><blockquote type=3D"cite" class=3D""><div =
class=3D"">On Aug 2, 2023, at 11:18 AM, Nuno Teixeira &lt;<a =
href=3D"mailto:eduardo@freebsd.org" class=3D"">eduardo@freebsd.org</a>&gt;=
 wrote:</div><br class=3D"Apple-interchange-newline"><div class=3D""><div =
dir=3D"ltr" class=3D""><div class=3D"">Hello,</div><div class=3D""><br =
class=3D""></div><div class=3D"">I'm trying to get access to a go.mod no =
tagged that contains fixes that I need to try.</div><div class=3D""><br =
class=3D""></div><div class=3D"">security/gopass</div><div class=3D""><a =
href=3D"https://github.com/gopasspw/gopass" =
class=3D"">https://github.com/gopasspw/gopass</a></div><div class=3D"">and=
 the module that I want to get is from commit <a =
href=3D"https://github.com/gopasspw/gopass/commit/" =
class=3D"">https://github.com/gopasspw/gopass/commit/</a></div><div =
class=3D""><br class=3D""></div><div class=3D"">I've see some examples =
of ports doing this like devel/lab:</div><div class=3D""><br =
class=3D""></div><div class=3D"">USES=3D &nbsp; &nbsp; &nbsp; &nbsp; =
&nbsp; go:modules<br class=3D"">MODVERSION=3D &nbsp; &nbsp; =
0.25.2-0.20230225220034-98c3f01c08e1<br class=3D"">GO_MODULE=3D &nbsp; =
&nbsp; &nbsp;<a =
href=3D"http://github.com/zaquestion/lab@v$%7BMODVERSION%7D" =
class=3D"">github.com/zaquestion/lab@v${MODVERSION}</a></div><div =
class=3D""><br class=3D""></div><div class=3D"">My question is: how do I =
get <span style=3D"font-weight:400" =
class=3D"">vX.0.0-yyyymmddhhmmss-abcdefxyz, especially </span><span =
style=3D"font-weight:400" class=3D"">yyyymmddhhmmss that it is =
recomended not be created by =
hand.</span></div></div></div></blockquote><div><br =
class=3D""></div>vX.0.0 =3D The next version that might be upcoming =
where I will consider it is 1.15.7</div><div>yyyymmddhhmmss =3D The =
commit date and time for this case you can try =
20230801000000</div><div>abcdefxyz =3D Commit hash which is&nbsp;<a =
href=3D"https://github.com/gopasspw/gopass/commit/8c666a93d844015cca992be0=
ab0c39992bb096ed" =
class=3D"">8c666a93d844015cca992be0ab0c39992bb096ed</a></div><div><br =
class=3D""></div><div>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.</div><div><br class=3D""></div><div><br =
class=3D""></div><div><blockquote type=3D"cite" class=3D""><div =
class=3D""><div dir=3D"ltr" class=3D""><div class=3D""><span =
style=3D"font-weight:400" class=3D"">in </span><a =
href=3D"https://jfrog.com/blog/go-big-with-pseudo-versions-and-gocenter/" =
class=3D"">https://jfrog.com/blog/go-big-with-pseudo-versions-and-gocenter=
/</a></div><div class=3D""><br class=3D""></div><div class=3D"">Thanks!<br=
 class=3D""></div><div class=3D""><span =
class=3D"gmail_signature_prefix">-- </span><br class=3D""><div dir=3D"ltr"=
 class=3D"gmail_signature" data-smartmail=3D"gmail_signature"><div =
dir=3D"ltr" class=3D""><span style=3D"color:rgb(102,102,102)" =
class=3D"">Nuno Teixeira<br class=3D"">FreeBSD Committer =
(ports)</span></div></div></div></div>
</div></blockquote></div><br class=3D""></body></html>=

--Apple-Mail=_0F7D1151-8DB5-4A93-A828-D3450FE54F41--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?73C236CB-747A-40B0-9DCA-9E635D1CA823>