From nobody Thu Aug 03 22:39:38 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 4RH3gl4q1gz4V7lb for ; Thu, 3 Aug 2023 22:39:47 +0000 (UTC) (envelope-from fuz@fuz.su) Received: from fuz.su (fuz.su [IPv6:2001:41d0:8:e508::1]) (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 (2048 bits) client-digest SHA256) (Client CN "fuz.su", Issuer "fuz.su" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 4RH3gk23bkz3dft; Thu, 3 Aug 2023 22:39:46 +0000 (UTC) (envelope-from fuz@fuz.su) Authentication-Results: mx1.freebsd.org; dkim=none; spf=pass (mx1.freebsd.org: domain of fuz@fuz.su designates 2001:41d0:8:e508::1 as permitted sender) smtp.mailfrom=fuz@fuz.su; dmarc=none Received: from fuz.su (localhost [127.0.0.1]) by fuz.su (8.16.1/8.16.1) with ESMTPS id 373MdcQo091644 (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384 bits=256 verify=NO); Fri, 4 Aug 2023 00:39:38 +0200 (CEST) (envelope-from fuz@fuz.su) Received: (from fuz@localhost) by fuz.su (8.16.1/8.16.1/Submit) id 373Mdc4x091643; Fri, 4 Aug 2023 00:39:38 +0200 (CEST) (envelope-from fuz) Date: Fri, 4 Aug 2023 00:39:38 +0200 From: Robert Clausecker To: Nuno Teixeira Cc: Moin Rahman , FreeBSD Mailing List Subject: Re: How to get a specific GO_MODULE tag (MODVERSION) Message-ID: References: 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 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Spamd-Result: default: False [0.21 / 15.00]; NEURAL_SPAM_SHORT(0.51)[0.512]; R_SPF_ALLOW(-0.20)[+a]; MIME_GOOD(-0.10)[text/plain]; MLMMJ_DEST(0.00)[freebsd-ports@freebsd.org]; TO_DN_ALL(0.00)[]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+]; R_DKIM_NA(0.00)[]; ASN(0.00)[asn:16276, ipnet:2001:41d0::/32, country:FR]; RCVD_TLS_LAST(0.00)[]; DMARC_NA(0.00)[fuz.su]; TO_MATCH_ENVRCPT_ALL(0.00)[]; ARC_NA(0.00)[]; RCVD_COUNT_TWO(0.00)[2]; FREEFALL_USER(0.00)[fuz]; RCPT_COUNT_THREE(0.00)[3]; FROM_HAS_DN(0.00)[]; MID_RHS_MATCH_FROM(0.00)[] X-Spamd-Bar: / X-Rspamd-Queue-Id: 4RH3gk23bkz3dft 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/8c666a93d844015cca992be0ab0c39992bb096ed > > I've see some examples of ports doing this like devel/lab: > > USES= go:modules > MODVERSION= 0.25.2-0.20230225220034-98c3f01c08e1 > GO_MODULE= 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