From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1 ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id eC3yAw7yNWGTDwAAgWs5BA (envelope-from ) for ; Mon, 06 Sep 2021 12:48:46 +0200 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1 with LMTPS id EPlvOw3yNWGPTAAAbx9fmQ (envelope-from ) for ; Mon, 06 Sep 2021 10:48:45 +0000 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 3258D123A5 for ; Mon, 6 Sep 2021 12:48:45 +0200 (CEST) Received: from localhost ([::1]:50984 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mNCBA-00029I-9R for larch@yhetil.org; Mon, 06 Sep 2021 06:48:44 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:52754) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mNC2k-0002W7-MM for guix-patches@gnu.org; Mon, 06 Sep 2021 06:40:03 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:40519) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mNC2k-0002jY-Es for guix-patches@gnu.org; Mon, 06 Sep 2021 06:40:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mNC2k-0002o7-BZ for guix-patches@gnu.org; Mon, 06 Sep 2021 06:40:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#50377] [PATCH v3 0/2] Support 'git describe' style commit IDs in transformations References: <20210904180845.23915-1-marius@gnu.org> In-Reply-To: <20210904180845.23915-1-marius@gnu.org> Resent-From: Marius Bakke Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Mon, 06 Sep 2021 10:40:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 50377 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 50377@debbugs.gnu.org Received: via spool by 50377-submit@debbugs.gnu.org id=B50377.163092474810692 (code B ref 50377); Mon, 06 Sep 2021 10:40:02 +0000 Received: (at 50377) by debbugs.gnu.org; 6 Sep 2021 10:39:08 +0000 Received: from localhost ([127.0.0.1]:52064 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mNC1s-0002mN-4p for submit@debbugs.gnu.org; Mon, 06 Sep 2021 06:39:08 -0400 Received: from eggs.gnu.org ([209.51.188.92]:36356) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mNC1f-0002kx-Tg for 50377@debbugs.gnu.org; Mon, 06 Sep 2021 06:39:06 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]:35074) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mNC1a-0001kE-NI for 50377@debbugs.gnu.org; Mon, 06 Sep 2021 06:38:50 -0400 Received: from host-37-191-231-185.lynet.no ([37.191.231.185]:38040 helo=localhost) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mNC1a-0007dt-7H for 50377@debbugs.gnu.org; Mon, 06 Sep 2021 06:38:50 -0400 From: Marius Bakke Date: Mon, 6 Sep 2021 12:38:44 +0200 Message-Id: <20210906103846.14941-1-marius@gnu.org> X-Mailer: git-send-email 2.31.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+larch=yhetil.org@gnu.org Sender: "Guix-patches" X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1630925325; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding:resent-cc: resent-from:resent-sender:resent-message-id:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post; bh=VgTW5fUIwPAJvBJbjkDyv+oWZMiVWGEkcYpfjJN9dhA=; b=oNmDcnB5cLKrqRaqgovxBNR+WdmUXlIpUifzCXztAiBBrfbgF7iE5lmuZbZgfoKSmUaLWQ K1Zd9PMtj9UT3TT1PVJC/KntRez/GmtGrIEUyRifZZfB+MMNyAWZ4nt+s8+moc5ZaXbUi3 0DGirfZeRy/wh84horrzl+fn5ZWhwinKvgYws/j9DD7uCYVOqHTXB/4yWvhXnbKn1/7RlL At5ZBuvPvmue95DBLeN5viKKq7Xh8vqVD72soOaibTDb7MrbjOIE2Dxs7C9/2mjblA6Vyc /0LaKbWiweNPgiwTr+GPiggZps33UDzTM020F0AdIjKB+vKhHELoOMvH24BSWA== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1630925325; a=rsa-sha256; cv=none; b=gzvQLFygvtEAR0H5GxwM83I+yXUa+hODiLbkJbrgN9fD5gCln/7mdD9boeYXGVMaw5TqwV SziVn5XicPnknsFa3Gc4kD/f8DXItRiMB4rrxVsHpJOxT7tujavMCrQIgaZvn7/D+DAnY0 aW0PRpm32VixaZOHpQPvrn0VKef8AtjzbIa/bYp+77ywxsPYOhPKUhNiDLdPatSVBjQJtr iO8r9SEJO5PyhqDfC/iDvawxQ24LkhysrWP/RCyu/isLPYA004kT9g+kyOWY+8R8OGYBFS rq7aHYCmPd4tlTx/FN3PreKl+orVZT4FiXf2vDUtnajFO0VsDopHs3O0ASPexw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=none; spf=pass (aspmx1.migadu.com: domain of guix-patches-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=guix-patches-bounces@gnu.org X-Migadu-Spam-Score: 2.09 Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=pass (policy=none) header.from=gnu.org; spf=pass (aspmx1.migadu.com: domain of guix-patches-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=guix-patches-bounces@gnu.org X-Migadu-Queue-Id: 3258D123A5 X-Spam-Score: 2.09 X-Migadu-Scanner: scn1.migadu.com X-TUID: r4UWFlLXpiFt * The new resolve-reference condition actually returns. * The transformation code now use the same heuristics as resolve-reference to check for the 'describe' style. I'm now reasonably confident in these patches and will push in a day or two unless there are objections. :-) Marius Bakke (2): git: 'resolve-reference' handles 'git describe'-style commit IDs. transformations: 'git describe' style commit IDs are used as version. guix/git.scm | 33 ++++++++++++++++++++++++--------- guix/transformations.scm | 37 ++++++++++++++++++++++++++++--------- tests/transformations.scm | 19 +++++++++++++++++++ 3 files changed, 71 insertions(+), 18 deletions(-) -- 2.31.1