GNU bug report logs - #67685
‘guix shell --export-manifest’ ignores transformations for ‘-D’ packages

Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.

Package: guix; Reported by: Ludovic Courtès <ludovic.courtes@HIDDEN>; dated Thu, 7 Dec 2023 10:18:01 UTC; Maintainer for guix is bug-guix@HIDDEN.

Message received at 67685 <at> debbugs.gnu.org:


Received: (at 67685) by debbugs.gnu.org; 4 Sep 2024 22:57:42 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Wed Sep 04 18:57:42 2024
Received: from localhost ([127.0.0.1]:35740 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1slywX-0005BP-V6
	for submit <at> debbugs.gnu.org; Wed, 04 Sep 2024 18:57:42 -0400
Received: from out-178.mta0.migadu.com ([91.218.175.178]:52866)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <eugene.dev@HIDDEN>) id 1slywV-0005B7-Sf
 for 67685 <at> debbugs.gnu.org; Wed, 04 Sep 2024 18:57:40 -0400
X-Report-Abuse: Please report any abuse attempt to abuse@HIDDEN and
 include these headers.
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=lipklim.org; s=key1;
 t=1725490558;
 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; bh=w0yj7A6WvWTbuEXm7gJubSVUuYnYzmPb7IMf5oHf6Co=;
 b=KCIFVUDg5ntMggny9i3TduwuDgQSQBL5EEIKJurhbBVzAGqlibLFHoDVolATDJValtPwcy
 YM2ZQHLfbDOd3Cdf4g4GhwRrNPqHQ4e8ErSwjaluLtoSTvq5Omv7b6y0AxTsSZUufNxvKL
 oxOXz7v47B89U00ue4OL8GKfczpDNfw=
From: Evgenii Klimov <eugene.dev@HIDDEN>
To: 67685 <at> debbugs.gnu.org
Subject: bug#67685: =?utf-8?Q?=E2=80=98guix?= shell =?utf-8?Q?--export-man?=
 =?utf-8?Q?ifest=E2=80=99?= ignores transformations
 for =?utf-8?B?4oCYLUTigJk=?= packages
In-Reply-To: 874jgufhb1.fsf@HIDDEN
Date: Wed, 04 Sep 2024 23:55:56 +0100
Message-ID: <87v7zbm3k3.fsf@HIDDEN>
MIME-Version: 1.0
Content-Type: text/plain
X-Migadu-Flow: FLOW_OUT
X-Spam-Score: -0.0 (/)
X-Debbugs-Envelope-To: 67685
Cc: ludovic.courtes@HIDDEN
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

I think that transformations should be applied to `-D --file'
combination as well (probably to `-D --manifest' too).

It would support the following use case (this is the reason I fould this
very bug).  When we have a project under development which is controlled
by guix.scm file and we want to try out the dependency from another fork
or branch, it would be useful for transformations to be propagated to
inputs/propagated-inputs/etc. inside guix.scm file.

Currently it doesn't apply transformations:

--8<---------------cut here---------------start------------->8---
guix shell -D -f guix.scm \
     --with-git-url=python-pytelegrambotapi=https://github.com/coder2020official/pyTelegramBotAPI \
     --with-branch=python-pytelegrambotapi=polling-improvements
--8<---------------cut here---------------end--------------->8---

However it does propagate:

--8<---------------cut here---------------start------------->8---
guix shell -f guix.scm \
     --with-git-url=python-pytelegrambotapi=https://github.com/coder2020official/pyTelegramBotAPI \
     --with-branch=python-pytelegrambotapi=polling-improvements
--8<---------------cut here---------------end--------------->8---

and this, when dependency is mentioned explicitly:

--8<---------------cut here---------------start------------->8---
guix shell -D -f guix.scm python-pytelegrambotapi \
     --with-git-url=python-pytelegrambotapi=https://github.com/coder2020official/pyTelegramBotAPI \
     --with-branch=python-pytelegrambotapi=polling-improvements
--8<---------------cut here---------------end--------------->8---




Information forwarded to bug-guix@HIDDEN:
bug#67685; Package guix. Full text available.

Message received at submit <at> debbugs.gnu.org:


Received: (at submit) by debbugs.gnu.org; 7 Dec 2023 10:17:45 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Thu Dec 07 05:17:45 2023
Received: from localhost ([127.0.0.1]:41111 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1rBBRw-0005Lc-RZ
	for submit <at> debbugs.gnu.org; Thu, 07 Dec 2023 05:17:45 -0500
Received: from lists.gnu.org ([2001:470:142::17]:44074)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <ludovic.courtes@HIDDEN>) id 1rBBRt-0005LM-2Q
 for submit <at> debbugs.gnu.org; Thu, 07 Dec 2023 05:17:43 -0500
Received: from eggs.gnu.org ([2001:470:142:3::10])
 by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <ludovic.courtes@HIDDEN>)
 id 1rBBRa-0002TS-D9
 for bug-guix@HIDDEN; Thu, 07 Dec 2023 05:17:22 -0500
Received: from mail2-relais-roc.national.inria.fr ([192.134.164.83])
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <ludovic.courtes@HIDDEN>)
 id 1rBBRW-00088m-Qn
 for bug-guix@HIDDEN; Thu, 07 Dec 2023 05:17:22 -0500
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=inria.fr; s=dc;
 h=from:to:subject:date:message-id:mime-version:
 content-transfer-encoding;
 bh=BojmgJegdUaXtMxs5MqXnwXrEpgeKGTemu+K3gqfA4Q=;
 b=MQmvAb6MQeOoxJFj8rKs7M+l71TA3MOZ30SUTylqP031DGfZID3Jf4w0
 fUieu25oZ7d4QcXlcdaqoHxwXXw17UDBhjG753jDMN4765R9vRNK+eMbK
 aqwYcPz1K2C+8G/OxjvXo9+JJMFLwgiNv9zX0ikh8QfslgCjRA576Y/Ce 4=;
Authentication-Results: mail2-relais-roc.national.inria.fr;
 dkim=none (message not signed) header.i=none;
 spf=SoftFail smtp.mailfrom=ludovic.courtes@HIDDEN;
 dmarc=fail (p=none dis=none) d=inria.fr
X-IronPort-AV: E=Sophos;i="6.04,256,1695679200"; d="scan'208";a="140804316"
Received: from unknown (HELO ribbon) ([193.50.110.69])
 by mail2-relais-roc.national.inria.fr with
 ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 07 Dec 2023 11:17:06 +0100
From: =?utf-8?Q?Ludovic_Court=C3=A8s?= <ludovic.courtes@HIDDEN>
To: bug-guix@HIDDEN
Subject: =?utf-8?Q?=E2=80=98guix?= shell =?utf-8?Q?--export-manifest?=
 =?utf-8?Q?=E2=80=99?= ignores transformations for =?utf-8?B?4oCYLUTigJk=?=
 packages
X-Debbugs-Cc: Gilles Marait <gilles.marait@HIDDEN>
X-URL: http://www.fdn.fr/~lcourtes/
X-Revolutionary-Date: Septidi 17 Frimaire an 232 de la =?utf-8?Q?R=C3=A9vo?=
 =?utf-8?Q?lution=2C?= jour du =?utf-8?Q?Cypr=C3=A8s?=
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: Thu, 07 Dec 2023 11:17:06 +0100
Message-ID: <874jgufhb1.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13)
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable
Received-SPF: pass client-ip=192.134.164.83;
 envelope-from=ludovic.courtes@HIDDEN;
 helo=mail2-relais-roc.national.inria.fr
X-Spam_score_int: -43
X-Spam_score: -4.4
X-Spam_bar: ----
X-Spam_report: (-4.4 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1,
 DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1,
 RCVD_IN_DNSWL_MED=-2.3, SPF_HELO_NONE=0.001, SPF_PASS=-0.001,
 T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no
X-Spam_action: no action
X-Spam-Score: 1.0 (+)
X-Debbugs-Envelope-To: submit
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -0.0 (/)

Hello!

=E2=80=98--export-manifest=E2=80=99 does not apply transformations to packa=
ges preceded
by =E2=80=98-D=E2=80=99 (development environment):

--8<---------------cut here---------------start------------->8---
$ guix shell -D guile-git --with-branch=3Dlibgit2=3Dmain --export-manifest
;; What follows is a "manifest" equivalent to the command line you gave.
;; You can store it in a file that you may then pass to any 'guix' command
;; that accepts a '--manifest' (or '-m') option.
(package->development-manifest
  (specification->package "guile-git"))

$ guix shell guile-git --with-branch=3Dlibgit2=3Dmain --export-manifest
;; What follows is a "manifest" equivalent to the command line you gave.
;; You can store it in a file that you may then pass to any 'guix' command
;; that accepts a '--manifest' (or '-m') option.

(use-modules (guix transformations))

(define transform1
  (options->transformation
    '((with-branch . "libgit2=3Dmain"))))

(packages->manifest
  (list (transform1 (specification->package "guile-git"))))

$ guix describe
Generation 283	Dec 04 2023 00:32:23	(current)
  guix 6e2dd51
    repository URL: https://git.savannah.gnu.org/git/guix.git
    branch: master
    commit: 6e2dd51df5f3f51e9056dd4f2e1b036195ab3caa
--8<---------------cut here---------------end--------------->8---

Ludo=E2=80=99.




Acknowledgement sent to Ludovic Courtès <ludovic.courtes@HIDDEN>:
New bug report received and forwarded. Copy sent to gilles.marait@HIDDEN, bug-guix@HIDDEN. Full text available.
Report forwarded to gilles.marait@HIDDEN, bug-guix@HIDDEN:
bug#67685; Package guix. Full text available.
Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.
Last modified: Sun, 12 Jan 2025 05:45:02 UTC

GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997 nCipher Corporation Ltd, 1994-97 Ian Jackson.