From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1 ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id yLSEF0O2M2G/0wAAgWs5BA (envelope-from ) for ; Sat, 04 Sep 2021 20:09:07 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1 with LMTPS id GKIZE0O2M2GrSAAAbx9fmQ (envelope-from ) for ; Sat, 04 Sep 2021 18:09:07 +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 19194127E4 for ; Sat, 4 Sep 2021 20:09:07 +0200 (CEST) Received: from localhost ([::1]:60904 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mMa6E-0006Xf-6s for larch@yhetil.org; Sat, 04 Sep 2021 14:09:06 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:36534) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mMa6A-0006XX-PP for guix-patches@gnu.org; Sat, 04 Sep 2021 14:09:02 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:36994) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mMa6A-0001XZ-Hl for guix-patches@gnu.org; Sat, 04 Sep 2021 14:09:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mMa6A-0003UG-6z for guix-patches@gnu.org; Sat, 04 Sep 2021 14:09:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#50377] [PATCH 0/2] Support 'git describe' style commit IDs in transformations Resent-From: Marius Bakke Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Sat, 04 Sep 2021 18:09:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 50377 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 50377@debbugs.gnu.org X-Debbugs-Original-To: guix-patches@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.163077893013383 (code B ref -1); Sat, 04 Sep 2021 18:09:02 +0000 Received: (at submit) by debbugs.gnu.org; 4 Sep 2021 18:08:50 +0000 Received: from localhost ([127.0.0.1]:48540 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mMa5y-0003Tm-Lo for submit@debbugs.gnu.org; Sat, 04 Sep 2021 14:08:50 -0400 Received: from lists.gnu.org ([209.51.188.17]:36080) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mMa5x-0003Te-JB for submit@debbugs.gnu.org; Sat, 04 Sep 2021 14:08:49 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:36522) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mMa5x-0006Vy-25 for guix-patches@gnu.org; Sat, 04 Sep 2021 14:08:49 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]:39894) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mMa5w-0001Mm-RX for guix-patches@gnu.org; Sat, 04 Sep 2021 14:08:48 -0400 Received: from host-37-191-231-185.lynet.no ([37.191.231.185]:38032 helo=localhost) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mMa5w-0004yT-6q for guix-patches@gnu.org; Sat, 04 Sep 2021 14:08:48 -0400 From: Marius Bakke Date: Sat, 4 Sep 2021 20:08:45 +0200 Message-Id: <20210904180845.23915-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=1630778947; 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:list-id:list-help: list-unsubscribe:list-subscribe:list-post; bh=Gtnnhi+McRdrhYwRqjaRkLNDjbQSlhAZOXgubjnrlhw=; b=DsYkTcUFB5iuk6V9tL4txF8hraInlHFXgcGJzeKUvAKi71LafuJkDDhMrdqdoXhp6Y4y4x YbHXfk8AJ8vA+tU0rgAXNnVzbNQgrzUOz1ZBGugT5WQJatRiTIj1KXg6BEZV2cPRPHmlsU v0gDgU/To3WdBsvHc98dKklMvU4eala7DsKicWZ/v3jbIHNDIacBAZr6d1/Ars0oi+Onjd GQ0wnhmmwax6yPQCrfDpU+IthfnCQwbTkfYZ9WrtPgem0siX8+wVDprcTUUKhA5S46PC05 9uTAz+P9GmJ2xLeW1cICDnx25R+3YbpH1kzqx/1A4rrssXmxVuxJuI3g/qUnww== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1630778947; a=rsa-sha256; cv=none; b=s86RIIFZK6WB2A0wTmaW+8MtD1kbZv1bbuJz4VCr/vwlXQCvMenTd1VuJYEVfLe3VG1BDS 4/lxImc4M/zPfbslV7ecggX0XL9cn69j/KxjB5fXL9UF4h+4VE4XbJunl2kbzf1cryyNjg wKjpB6D4SFUk1Qp9MKWk0nsSteTVGSvxohhIjxQ9Rbl1mzMXxKuO14/f4VXwPc2EKjDd5+ KuyfpHs33pXMWoQ6b3FgiuA/ufviJ28eqrAUvCim5rBLa0PyCjkBzFfAvlS2vA9E9xRx36 jxzr4z1j4HU0p/CQf4dwJtKmcxg6GzgphsHN4EZ3RlAJlgtOO+clpP1b6gVpOQ== 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-patches-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=guix-patches-bounces@gnu.org X-Migadu-Spam-Score: 3.58 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: 19194127E4 X-Spam-Score: 3.58 X-Migadu-Scanner: scn0.migadu.com X-TUID: 2tTjweYmouMw The first patch makes it possible to pass a 'git describe' style commit identifier to --with-commit. The second patch arranges so that it is used as the package version, sans any leading 'v', if applicable. 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 | 37 ++++++++++++++++++++----------------- guix/transformations.scm | 34 +++++++++++++++++++++++++--------- tests/transformations.scm | 19 +++++++++++++++++++ 3 files changed, 64 insertions(+), 26 deletions(-) -- 2.31.1