From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id oAvJK8Mb02FMGAEAgWs5BA (envelope-from ) for ; Mon, 03 Jan 2022 16:52:35 +0100 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id WB1dKMMb02E0qwAAauVa8A (envelope-from ) for ; Mon, 03 Jan 2022 16:52:35 +0100 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 66DC52B514 for ; Mon, 3 Jan 2022 16:52:35 +0100 (CET) Received: from localhost ([::1]:49714 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1n4PdS-00060h-GJ for larch@yhetil.org; Mon, 03 Jan 2022 10:52:34 -0500 Received: from eggs.gnu.org ([209.51.188.92]:41940) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1n4Pca-0004uc-Ky for guix-devel@gnu.org; Mon, 03 Jan 2022 10:51:41 -0500 Received: from [2a0c:e300::1] (port=54626 helo=hera.aquilenet.fr) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1n4PcY-0004o3-Nw for guix-devel@gnu.org; Mon, 03 Jan 2022 10:51:40 -0500 Received: from localhost (localhost [127.0.0.1]) by hera.aquilenet.fr (Postfix) with ESMTP id 5932026F; Mon, 3 Jan 2022 16:51:35 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at aquilenet.fr Received: from hera.aquilenet.fr ([127.0.0.1]) by localhost (hera.aquilenet.fr [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id EO6inHgj-59J; Mon, 3 Jan 2022 16:51:34 +0100 (CET) Received: from ribbon (91-160-117-201.subs.proxad.net [91.160.117.201]) by hera.aquilenet.fr (Postfix) with ESMTPSA id 505A91E4; Mon, 3 Jan 2022 16:51:34 +0100 (CET) From: =?utf-8?Q?Ludovic_Court=C3=A8s?= To: Vagrant Cascadian Subject: Re: On raw strings in commit field References: <6e451a878b749d4afb6eede9b476e5faabb0d609.camel@gmail.com> <87y240hd48.fsf@yucca> X-URL: http://www.fdn.fr/~lcourtes/ X-Revolutionary-Date: 14 =?utf-8?Q?Niv=C3=B4se?= an 230 de la =?utf-8?Q?R?= =?utf-8?Q?=C3=A9volution?= X-PGP-Key-ID: 0x090B11993D9AEBB5 X-PGP-Key: http://www.fdn.fr/~lcourtes/ludovic.asc X-PGP-Fingerprint: 3CE4 6455 8A84 FDC6 9DB4 0CFB 090B 1199 3D9A EBB5 X-OS: x86_64-pc-linux-gnu Date: Mon, 03 Jan 2022 16:51:33 +0100 In-Reply-To: <87y240hd48.fsf@yucca> (Vagrant Cascadian's message of "Fri, 31 Dec 2021 09:56:39 -0800") Message-ID: <87mtkchl6i.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.2 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spamd-Bar: / X-Rspamd-Server: hera X-Rspamd-Queue-Id: 5932026F X-Spamd-Result: default: False [-0.10 / 15.00]; ARC_NA(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; FROM_HAS_DN(0.00)[]; RCPT_COUNT_THREE(0.00)[3]; FREEMAIL_ENVRCPT(0.00)[gmail.com]; TO_MATCH_ENVRCPT_ALL(0.00)[]; TAGGED_RCPT(0.00)[]; MIME_GOOD(-0.10)[text/plain]; TO_DN_SOME(0.00)[]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+]; RCVD_COUNT_TWO(0.00)[2]; RCVD_TLS_ALL(0.00)[]; MID_RHS_MATCH_FROM(0.00)[]; FREEMAIL_CC(0.00)[gmail.com,gnu.org] X-Host-Lookup-Failed: Reverse DNS lookup failed for 2a0c:e300::1 (failed) Received-SPF: softfail client-ip=2a0c:e300::1; envelope-from=ludo@gnu.org; helo=hera.aquilenet.fr X-Spam_score_int: 15 X-Spam_score: 1.5 X-Spam_bar: + X-Spam_report: (1.5 / 5.0 requ) RDNS_NONE=0.793, SPF_HELO_PASS=-0.001, SPF_SOFTFAIL=0.665 autolearn=no autolearn_force=no X-Spam_action: no action X-BeenThere: guix-devel@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: guix-devel@gnu.org, Liliana Marie Prikler Errors-To: guix-devel-bounces+larch=yhetil.org@gnu.org Sender: "Guix-devel" X-Migadu-Flow: FLOW_IN X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1641225155; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:list-id:list-help: list-unsubscribe:list-subscribe:list-post; bh=OSN40mjCw+6nTShpYhA3G6R0lThSsJxDSNoyqnP5FpM=; b=PXMN/r4J8BD2dmeFWiW9feERAqUPC9y1rGjHUEyYlDvG+fWjM9f5MQ+mU4Yhy84x46cMNl Wqf3qHhUTN+0DmxmrPyAy9Eeg+26+DUzMfIEJ+2sQwggYhb2DTYHERGMxk+sob1YBOLpvr HfOMa8lpUR6mIIfweruIsHMiC0MVO32U2pto4cFQyQbP3qfdto0qx6UcHOtIeYPEdSTdXp rsVWM5lHu2VqDOrG7TqZ6h90yAjPPSfcLIIIK2VaNsl6nghA+fBSJ9oFUvfhKvb7HPRrrz d6oYukqkrooSX8UT+YHqWENH2bYG6Rre0Nc0aa1wx+Nsrva2t0NrG2SmMIs8cw== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1641225155; a=rsa-sha256; cv=none; b=kB+OzyUeZc0lcRbJo47QCUBRC4ODN58ocKJGHmu4dddP/SqVj/e+SHF6jxxBMQNSObQXWQ XpPEYAFbINIoi0vyqrIucYAAWKdpdRMHQkmYzsp6vXxeg1mVlGlvkzNg1Q6xrZtERBRhlB Pzr4IN9EKOQGOVlqsFrHCQ0pjr+r+UQhP7sxUGeh7z5zi547hY9nsWVN6TB56sbCQ5zOjI vsI5cgvPP1U6dJ8pSgcB58mwMrlO55Dwbp9wJKOtCy5Kdr5OC0nftVwCajfX1H5gqW93gJ Xyet8YrupVMZrNPx6k2+KEs0MW1HDVdnDtNRsK3r9Vv0tuTFyubM6lwBHd6bYA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=none; dmarc=pass (policy=none) header.from=gnu.org; spf=pass (aspmx1.migadu.com: domain of "guix-devel-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-devel-bounces+larch=yhetil.org@gnu.org" X-Migadu-Spam-Score: -4.19 Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=pass (policy=none) header.from=gnu.org; spf=pass (aspmx1.migadu.com: domain of "guix-devel-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-devel-bounces+larch=yhetil.org@gnu.org" X-Migadu-Queue-Id: 66DC52B514 X-Spam-Score: -4.19 X-Migadu-Scanner: scn0.migadu.com X-TUID: uSlF+nRH+kYA Hello, Vagrant Cascadian skribis: > How about using the output of git describe, which can unambigously > include the most relevent tag, the number of commits since that tag, and > the commit hash: > > $ git describe --long --abbrev=3D41 > v1.3.0-13278-g60661adfb8ffa28e1acfcfea27c6cc2fc70f88fe > > $ git describe --long --abbrev=3D41 v1.3.0 > v1.3.0-0-ga0178d34f582b50e9bdbb0403943129ae5b560ff What does =E2=80=98git checkout=E2=80=99 do when passed such a string? Doe= s it ignore the tag part? > I *think* I've used such git references in the commit field of packages > before, and guix seemed fine with it. Occasionally, I've seen git > describe pick an odd tag to base on. Not sure how it interacts with > software heritage, or multiple tags, or renamed tags... but in theory it > could work, and would allow us to detect tag changes "upstream". For SWH, we need either a tag or a commit ID. Thanks, Ludo=E2=80=99.