From nobody Fri Aug 04 08:33:34 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 4RHJs65mPqz4gqm1 for ; Fri, 4 Aug 2023 08:33:46 +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 4RHJs65Hh8z4Dsw; Fri, 4 Aug 2023 08:33:46 +0000 (UTC) (envelope-from eduardo@freebsd.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1691138026; 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=q6EfNLbUCSC5DW01rmLNGHey9/9quLcyUSG5q+qZvIQ=; b=ysnyVHyRJrXEacXcbPUpFcBYZeZ/xSApX2XBVmn2o2cCVWgGIK7zaF/AdSdDI2Orba829f hgphbpqT08P1Lb4DXrOtStQfUKmDI+ezxFV9Ffj1Se2A2uCY24B4ZVqVixq2HoIWLoAFT0 vcg+MSJJI86e7JC1qVadoCj7cXluz3DpB0L0HjJrOFSWr+PT+blQECLa/sHQ+RW+U4J7WT SLkZCzOoKDbuCjfGiN+taSTTfGyv+w0GhahjrvjLf7KhKfeOxOR2N5RAyfvLMEG9q2j/1+ arYPj56fuiFtI6NVGBNTA8wUIFnzYgKa4/ap5Tw4PeNbxN5alPLF13lHHTxfbg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1691138026; 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=q6EfNLbUCSC5DW01rmLNGHey9/9quLcyUSG5q+qZvIQ=; b=XKc5BNXUUO2EmyG7AUdG0j3Vpg2VjA4L97oD6fiwmzUDnegrnPXU8YsYiLOvbfhW0ts89Y neLzLkrTipRieresfAStoxaXXGaGKcW6fkh/ogGyDDnuOB+oxN23CS7cg/z72Wu20Ishbq uk/ssKq5/BhdJC5OxkrGh1wzqnWBJyG+aRkVmTmbr7UdTKjwSrEP9Tf9lIdbNRb5XBV00N QBf9hghVqEaXB9pc3a0osXe8M7Xe6fdxvHyD3SWrrgeuHQU3FSrUuBxmjZHha6StKevDZT 1GrP5Q+I8zYaXDbF1zgFP4B0ECHxniLK27CPnEUxPPyMZnMRVsurWZE7rOKLWw== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1691138026; a=rsa-sha256; cv=none; b=rjEQvxpWiOhGSxtnYsJOtaJ/ePoIR5Dau53HlHbzgDPHESIkV1KI3wSwzJioZBhbHkiYsA yJGuVuvjhj4LGFGSKtW6Q2YN1lf5bqNpMFt9q2a9TnMi6EilQwVCYN2kbjFXQFYHyon/wr y+nWfJ0ZKlQk62k07/OcIiVCpolcysg4vQRcB83UMeRfkKI6GQJbHYBQ3VGW5VQor/r6sK Dhut+rTHM5XCJ7X1EI32m35CzsF6/gZGv6niVq1J4U/BfMzOdbxT27Z8NHbg/J5U052p5U Or3cgR5Wjle3FNIlwiMbO1V7CM98zazg1gyUIZPNhp/s9muL/bA9PxgYR0HQhQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none Received: from mail-qt1-f173.google.com (mail-qt1-f173.google.com [209.85.160.173]) (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 4RHJs64MdtzwYT; Fri, 4 Aug 2023 08:33:46 +0000 (UTC) (envelope-from eduardo@freebsd.org) Received: by mail-qt1-f173.google.com with SMTP id d75a77b69052e-4055bc3cdd8so14237921cf.1; Fri, 04 Aug 2023 01:33:46 -0700 (PDT) X-Gm-Message-State: AOJu0Yw5AW/GMWLEW/rfAsctLpuBjuWWZfSZqpg8qmFsQFDOv0D7k3Qm wmEgwijo1zY0tWdYZNgpY1Awq2phQ4CJqXxeaJo= X-Google-Smtp-Source: AGHT+IFoGu+YJZfX5jPD+y6ZOzjDYs2t2FjUUAOmUDz4fJhhUH8mtyBsbcPcKC3LOO+wD0h0lQRlBJc7AV2IM6nvOP8= X-Received: by 2002:ac8:57c8:0:b0:403:c6d1:8195 with SMTP id w8-20020ac857c8000000b00403c6d18195mr1781877qta.16.1691138025607; Fri, 04 Aug 2023 01:33:45 -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: In-Reply-To: From: Nuno Teixeira Date: Fri, 4 Aug 2023 09:33:34 +0100 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: How to get a specific GO_MODULE tag (MODVERSION) To: Robert Clausecker Cc: Moin Rahman , FreeBSD Mailing List Content-Type: multipart/alternative; boundary="0000000000004857ed060214c162" --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 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} > > > > > 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
Hello Robert!

$ go list -m -f = 9;{{.Version}}' github= .com/gopasspw/gopass@8c666a93d844015cca992be0ab0c39992bb096ed
$ v1.= 15.7-0.20230801080807-8c666a93d844

Perfect!
<= div>
I've just noted this awesome cmd and start using it = when needed.

Thanks very much,

=
Robert Cla= usecker <fuz@fuz.su> escreveu no di= a quinta, 3/08/2023 =C3=A0(s) 23:39:
Hi Nuno,

I use this command:

=C2=A0 =C2=A0 go list -m -f '{{.Version}}' package@githash

e.g.

=C2=A0 =C2=A0 go list -m -f '{{.Version}}' github.com/gopasspw/gopass@8c666a93d844015cca992be= 0ab0c39992bb096ed

This works with anything git understands.=C2=A0 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://githu= b.com/gopasspw/gopass/commit/8c666a93d844015cca992be0ab0c39992bb096ed >
> I've see some examples of ports doing this like devel/lab:
>
> USES=3D=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0go:modules
> MODVERSION=3D=C2=A0 =C2=A0 =C2=A00.25.2-0.20230225220034-98c3f01c08e1<= br> > GO_MODULE=3D=C2=A0 =C2=A0 =C2=A0 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.
>
> in https://jfrog.com/blog/go-bi= g-with-pseudo-versions-and-gocenter/
>
> Thanks!
> --
> Nuno Teixeira
> FreeBSD Committer (ports)

--
()=C2=A0 ascii ribbon campaign - for an 8-bit clean world
/\=C2=A0 - against html email=C2=A0 - against proprietary attachments


--
Nuno Teixeira
FreeBSD Committ= er (ports)
--0000000000004857ed060214c162--