Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 3 Aug 2023 11:00:02 +0100
From:      Nuno Teixeira <eduardo@freebsd.org>
To:        Moin Rahman <bofh@freebsd.org>
Cc:        FreeBSD Mailing List <freebsd-ports@freebsd.org>
Subject:   Re: How to get a specific GO_MODULE tag (MODVERSION)
Message-ID:  <CAFDf7UK10F5908YpPs9778phXM5ngG3i34gGtHH=j1k0nebnLw@mail.gmail.com>
In-Reply-To: <73C236CB-747A-40B0-9DCA-9E635D1CA823@freebsd.org>
References:  <CAFDf7UK-wWngsh9Rax4FULknYj_AMiB%2BGhUEKCxSzH=DjdA_dA@mail.gmail.com> <73C236CB-747A-40B0-9DCA-9E635D1CA823@freebsd.org>

next in thread | previous in thread | raw e-mail | index | archive | help
--000000000000a95cf1060201d87a
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

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 =C3=A0(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=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>;
>
> 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 8c666a93d844015cca992be0ab0c39992bb096=
ed
> <https://github.com/gopasspw/gopass/commit/8c666a93d844015cca992be0ab0c39=
992bb096ed>
>
> But above all different go applications has different methods so try whic=
h
> 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)
>
>
>

--=20
Nuno Teixeira
FreeBSD Committer (ports)

--000000000000a95cf1060201d87a
Content-Type: text/html; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr"><div>Hello <br></div><div><br></div><div>I&#39;ve managed =
to make it to work! Really nice feature.</div><div>My mistake is that I was=
 using a wrong TS because I didn&#39;t adjusted time zone:</div><div><br></=
div><div>Commit:</div><div>Tue Aug 1 <b>10</b>:08:07 2023 <b>+0200</b></div=
><div><br></div><div>TS:<br></div><div>is<b> </b>20230801<b>08</b>0807</div=
><div>---------------- -^<br></div><div>not 20230801<b>10</b>0807</div><div=
>--------------------^</div><div>:)</div><div><br></div><div>Thanks very mu=
ch for explanation!<br></div><div><br></div></div><br><div class=3D"gmail_q=
uote"><div dir=3D"ltr" class=3D"gmail_attr">Moin Rahman &lt;<a href=3D"mail=
to:bofh@freebsd.org">bofh@freebsd.org</a>&gt; escreveu no dia quinta, 3/08/=
2023 =C3=A0(s) 02:13:<br></div><blockquote class=3D"gmail_quote" style=3D"m=
argin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left=
:1ex"><div style=3D"overflow-wrap: break-word;"><br><div><br><blockquote ty=
pe=3D"cite"><div>On Aug 2, 2023, at 11:18 AM, Nuno Teixeira &lt;<a href=3D"=
mailto:eduardo@freebsd.org" target=3D"_blank">eduardo@freebsd.org</a>&gt; w=
rote:</div><br><div><div dir=3D"ltr"><div>Hello,</div><div><br></div><div>I=
&#39;m trying to get access to a go.mod no tagged that contains fixes that =
I need to try.</div><div><br></div><div>security/gopass</div><div><a href=
=3D"https://github.com/gopasspw/gopass" target=3D"_blank">https://github.co=
m/gopasspw/gopass</a></div><div>and the module that I want to get is from c=
ommit <a href=3D"https://github.com/gopasspw/gopass/commit/" target=3D"_bla=
nk">https://github.com/gopasspw/gopass/commit/</a></div><div><br></div><div=
>I&#39;ve see some examples of ports doing this like devel/lab:</div><div><=
br></div><div>USES=3D =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 go:modules<br>MODV=
ERSION=3D =C2=A0 =C2=A0 0.25.2-0.20230225220034-98c3f01c08e1<br>GO_MODULE=
=3D =C2=A0 =C2=A0 =C2=A0<a href=3D"http://github.com/zaquestion/lab@v$%7BMO=
DVERSION%7D" target=3D"_blank">github.com/zaquestion/lab@v${MODVERSION}</a>=
</div><div><br></div><div>My question is: how do I get <span style=3D"font-=
weight:400">vX.0.0-yyyymmddhhmmss-abcdefxyz, especially </span><span style=
=3D"font-weight:400">yyyymmddhhmmss that it is recomended not be created by=
 hand.</span></div></div></div></blockquote><div><br></div>vX.0.0 =3D The n=
ext 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=C2=A0<a href=3D=
"https://github.com/gopasspw/gopass/commit/8c666a93d844015cca992be0ab0c3999=
2bb096ed" target=3D"_blank">8c666a93d844015cca992be0ab0c39992bb096ed</a></d=
iv><div><br></div><div>But above all different go applications has differen=
t methods so try which one actually works. I believe I extracted the exact =
TS from the git log.</div><div><br></div><div><br></div><div><blockquote ty=
pe=3D"cite"><div><div dir=3D"ltr"><div><span style=3D"font-weight:400">in <=
/span><a href=3D"https://jfrog.com/blog/go-big-with-pseudo-versions-and-goc=
enter/" target=3D"_blank">https://jfrog.com/blog/go-big-with-pseudo-version=
s-and-gocenter/</a></div><div><br></div><div>Thanks!<br></div><div><span cl=
ass=3D"gmail_signature_prefix">-- </span><br><div dir=3D"ltr" class=3D"gmai=
l_signature"><div dir=3D"ltr"><span style=3D"color:rgb(102,102,102)">Nuno T=
eixeira<br>FreeBSD Committer (ports)</span></div></div></div></div>
</div></blockquote></div><br></div></blockquote></div><br clear=3D"all"><br=
><span class=3D"gmail_signature_prefix">-- </span><br><div dir=3D"ltr" clas=
s=3D"gmail_signature"><div dir=3D"ltr"><span style=3D"color:rgb(102,102,102=
)">Nuno Teixeira<br>FreeBSD Committer (ports)</span></div></div>

--000000000000a95cf1060201d87a--



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