From nobody Thu Aug 3 10:00:02 2023 X-Original-To: freebsd-ports@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4RGkqL2tW5zZTZ9 for ; Thu, 3 Aug 2023 10:00:14 +0000 (UTC) (envelope-from eduardo@freebsd.org) Received: from smtp.freebsd.org (smtp.freebsd.org [96.47.72.83]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "smtp.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4RGkqL1Tb6z3KDp; Thu, 3 Aug 2023 10:00:14 +0000 (UTC) (envelope-from eduardo@freebsd.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1691056814; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=RzrT+89bk3yvZGutPWl9VmwvisIy6VZke5M0JBW/Qpg=; b=qKKduuQ/dlCxCTRRFwKEqrNKTwgNWBsZw8S89g3fCz/ygzd7oW5Lc0rmn2iPX0UbvTnQMR X5X84sJAKRJLZA49UcXZmWaiB1NCBbLOOXM5geAiPLM4iB3m+7BzOJ3DbWSYcp6r78y71D YNYJFEdD1xKSF6vdaX2BP95iV5OgSwyobQxGDASyXsENS7dcIUFWfviwDwg57iInDdsRP4 p8NPcFJd/rMXQkP6mcridsBVXQP7Biq6pv//Od0v17z4+m4yOkkTd0rybiuUHQ16oPpYOT VhAStMdD7TBXGLFq1IUThMvXIkYVgl7svjjXY9bbCHLTutn9oWnpAJXusTZWWg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1691056814; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=RzrT+89bk3yvZGutPWl9VmwvisIy6VZke5M0JBW/Qpg=; b=KFF++i/n9KXii/Z2al8OYYTpSdaQgKeI9PWPMSUVV4duecoomOcKgfelB9pfnzyGYXDy8g pCZRdC3cHI98/55KuyZni99X7XMJ9AFC0WlUzq27bzwwXyPY9qA8Qfw2QN/aL1RkuJJ01v YMHSe19EFk4C9aOpsmDBDRjH9nOTZ0mxko8wU08vu1YIL76TnXWMuEe7wY51YBidoN3csX mnf9sz+NjaDoe13WoVMXCIvPIfplGjH62nsMAbCQgGbhXUks4jzuQb3NDLGtv2P+dU9pEt /NDyPx1fSgczCOIOpgVSQoohDFCSK6TLaE2XQKftAEcg6TTXJRiM+WZMQwnX7w== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1691056814; a=rsa-sha256; cv=none; b=L5EW3mQs2QIH8I/DYbzzXcb1KXTRGK2o/XC4B4WHgSqpJqSTq+ig5C+oDl3HlDsLp81E/w jLAtonwDsXWPkupwo/jct6XZKmB06YBDWy301Y2cubAG2s/D5NIRTBtDKAfbRlayOlmIsm xXQHe6X7tf2YzkkKVQ8aYoGFORgfKt3Ozv9Hu/tztZ0RK9wcR26d8DJDYf4eC6EFAciTjW uCd555P4xqo6Hm4eLRHL0TPMIHeXClenA37WK3r3KtAq13eVjKzoUbOLkYydFU/3zZWkus N/gHitYMeFDXWXyY1UuCY6LCxBWo5PJ3cs2j0+s/rKgVVR0+vos5B28WaU0s1Q== ARC-Authentication-Results: i=1; mx1.freebsd.org; none Received: from mail-qt1-f170.google.com (mail-qt1-f170.google.com [209.85.160.170]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "GTS CA 1D4" (verified OK)) (Authenticated sender: eduardo) by smtp.freebsd.org (Postfix) with ESMTPSA id 4RGkqL0RZkz1N4; Thu, 3 Aug 2023 10:00:14 +0000 (UTC) (envelope-from eduardo@freebsd.org) Received: by mail-qt1-f170.google.com with SMTP id d75a77b69052e-4039a42467fso5837471cf.3; Thu, 03 Aug 2023 03:00:14 -0700 (PDT) X-Gm-Message-State: ABy/qLZIvJOyArbM8n3N1LpjPJr+hXo8FUfUSKROFCylBv85TAkecqqK 8oz2S6JVYx0AzQ1sgcQQ3AHqgCsQy8wMa9oRozY= X-Google-Smtp-Source: APBJJlEbbytBVWKsImziYXFzySKfYrBECcllUoTX35pzATgrlKrU/Wm2m2cw6TRLkFHtraYKxLUT4IWvgbdy8Lj6YWE= X-Received: by 2002:ac8:5f8b:0:b0:3f4:8612:6d84 with SMTP id j11-20020ac85f8b000000b003f486126d84mr19567030qta.60.1691056813463; Thu, 03 Aug 2023 03:00:13 -0700 (PDT) List-Id: Porting software to FreeBSD List-Archive: https://lists.freebsd.org/archives/freebsd-ports List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-ports@freebsd.org X-BeenThere: freebsd-ports@freebsd.org MIME-Version: 1.0 References: <73C236CB-747A-40B0-9DCA-9E635D1CA823@freebsd.org> In-Reply-To: <73C236CB-747A-40B0-9DCA-9E635D1CA823@freebsd.org> From: Nuno Teixeira Date: Thu, 3 Aug 2023 11:00:02 +0100 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: How to get a specific GO_MODULE tag (MODVERSION) To: Moin Rahman Cc: FreeBSD Mailing List Content-Type: multipart/alternative; boundary="000000000000a95cf1060201d87a" --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 escreveu no dia quinta, 3/08/2023 =C3=A0(s) = 02:13: > > > On Aug 2, 2023, at 11:18 AM, Nuno Teixeira 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} > > > 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 > > > 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
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 20230801080807
---------------- -^
not 20230801100807
--------------------^
:)

Thanks very mu= ch 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> w= rote:

Hello,

I= 'm trying to get access to a go.mod no tagged that contains fixes that = I need to try.

security/gopass
and the module that I want to get is from c= ommit https://github.com/gopasspw/gopass/commit/

I've see some examples of ports doing this like devel/lab:
<= br>
USES=3D =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 go:modules
MODV= ERSION=3D =C2=A0 =C2=A0 0.25.2-0.20230225220034-98c3f01c08e1
GO_MODULE= =3D =C2=A0 =C2=A0 =C2=A0github.com/zaquestion/lab@v${MODVERSION}=

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 n= ext 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=C2=A08c666a93d844015cca992be0ab0c39992bb096ed

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.



Thanks!
--
Nuno T= eixeira
FreeBSD Committer (ports)


--
Nuno Teixeira
FreeBSD Committer (ports)
--000000000000a95cf1060201d87a--