Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 4 Aug 2023 09:33:34 +0100
From:      Nuno Teixeira <eduardo@freebsd.org>
To:        Robert Clausecker <fuz@fuz.su>
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:  <CAFDf7U%2BvHsVGtefEXt5U3SwcyG3jNGCAuVDFvNTPspkdC4V7fg@mail.gmail.com>
In-Reply-To: <ZMwsqstV_5Ug20GD@fuz.su>
References:  <CAFDf7UK-wWngsh9Rax4FULknYj_AMiB%2BGhUEKCxSzH=DjdA_dA@mail.gmail.com> <ZMwsqstV_5Ug20GD@fuz.su>

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

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 <fuz@fuz.su> escreveu no dia quinta, 3/08/2023 =C3=A0(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/8c666a93d844015cca992be0ab0c399=
92bb096ed
> >
> > 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.
> >
> > 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
>


--=20
Nuno Teixeira
FreeBSD Committer (ports)

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

<div dir=3D"ltr"><div>Hello Robert!</div><div><br></div>$ go list -m -f &#3=
9;{{.Version}}&#39; <a href=3D"http://github.com/gopasspw/gopass@8c666a93d8=
44015cca992be0ab0c39992bb096ed" rel=3D"noreferrer" target=3D"_blank">github=
.com/gopasspw/gopass@8c666a93d844015cca992be0ab0c39992bb096ed</a><div>$ v1.=
15.7-0.20230801080807-8c666a93d844</div><div><br></div><div>Perfect!</div><=
div><br></div><div>I&#39;ve just noted this awesome cmd and start using it =
when needed.</div><div><br></div><div>Thanks very much,<br></div></div><br>=
<div class=3D"gmail_quote"><div dir=3D"ltr" class=3D"gmail_attr">Robert Cla=
usecker &lt;<a href=3D"mailto:fuz@fuz.su">fuz@fuz.su</a>&gt; escreveu no di=
a quinta, 3/08/2023 =C3=A0(s) 23:39:<br></div><blockquote class=3D"gmail_qu=
ote" style=3D"margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,20=
4);padding-left:1ex">Hi Nuno,<br>
<br>
I use this command:<br>
<br>
=C2=A0 =C2=A0 go list -m -f &#39;{{.Version}}&#39; package@githash<br>
<br>
e.g.<br>
<br>
=C2=A0 =C2=A0 go list -m -f &#39;{{.Version}}&#39; <a href=3D"http://github=
.com/gopasspw/gopass@8c666a93d844015cca992be0ab0c39992bb096ed" rel=3D"noref=
errer" target=3D"_blank">github.com/gopasspw/gopass@8c666a93d844015cca992be=
0ab0c39992bb096ed</a><br>
<br>
This works with anything git understands.=C2=A0 Most importantly,<br>
it also does the right thing for pseudo-versions inbetween<br>
tagged releases.<br>
<br>
Yours,<br>
Robert Clausecker<br>
<br>
Am Wed, Aug 02, 2023 at 10:18:13AM +0100 schrieb Nuno Teixeira:<br>
&gt; Hello,<br>
&gt; <br>
&gt; I&#39;m trying to get access to a go.mod no tagged that contains fixes=
 that I<br>
&gt; need to try.<br>
&gt; <br>
&gt; security/gopass<br>
&gt; <a href=3D"https://github.com/gopasspw/gopass" rel=3D"noreferrer" targ=
et=3D"_blank">https://github.com/gopasspw/gopass</a><br>;
&gt; and the module that I want to get is from commit<br>
&gt; <a href=3D"https://github.com/gopasspw/gopass/commit/8c666a93d844015cc=
a992be0ab0c39992bb096ed" rel=3D"noreferrer" target=3D"_blank">https://githu=
b.com/gopasspw/gopass/commit/8c666a93d844015cca992be0ab0c39992bb096ed</a><b=
r>
&gt; <br>
&gt; I&#39;ve see some examples of ports doing this like devel/lab:<br>
&gt; <br>
&gt; USES=3D=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0go:modules<br>
&gt; MODVERSION=3D=C2=A0 =C2=A0 =C2=A00.25.2-0.20230225220034-98c3f01c08e1<=
br>
&gt; GO_MODULE=3D=C2=A0 =C2=A0 =C2=A0 <a href=3D"http://github.com/zaquesti=
on/lab@v$%7BMODVERSION%7D" rel=3D"noreferrer" target=3D"_blank">github.com/=
zaquestion/lab@v${MODVERSION}</a><br>
&gt; <br>
&gt; My question is: how do I get vX.0.0-yyyymmddhhmmss-abcdefxyz,<br>
&gt; especially yyyymmddhhmmss<br>
&gt; that it is recomended not be created by hand.<br>
&gt; <br>
&gt; in <a href=3D"https://jfrog.com/blog/go-big-with-pseudo-versions-and-g=
ocenter/" rel=3D"noreferrer" target=3D"_blank">https://jfrog.com/blog/go-bi=
g-with-pseudo-versions-and-gocenter/</a><br>
&gt; <br>
&gt; Thanks!<br>
&gt; -- <br>
&gt; Nuno Teixeira<br>
&gt; FreeBSD Committer (ports)<br>
<br>
-- <br>
()=C2=A0 ascii ribbon campaign - for an 8-bit clean world <br>
/\=C2=A0 - against html email=C2=A0 - against proprietary attachments<br>
</blockquote></div><br clear=3D"all"><br><span class=3D"gmail_signature_pre=
fix">-- </span><br><div dir=3D"ltr" class=3D"gmail_signature"><div dir=3D"l=
tr"><span style=3D"color:rgb(102,102,102)">Nuno Teixeira<br>FreeBSD Committ=
er (ports)</span></div></div>

--0000000000004857ed060214c162--



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