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

Previous Next

Package: guix;

Reported by: Ludovic Courtès <ludovic.courtes <at> inria.fr>

Date: Thu, 7 Dec 2023 10:18:01 UTC

Severity: normal

To reply to this bug, email your comments to 67685 AT debbugs.gnu.org.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to gilles.marait <at> inria.fr, bug-guix <at> gnu.org:
bug#67685; Package guix. (Thu, 07 Dec 2023 10:18:01 GMT) Full text and rfc822 format available.

Acknowledgement sent to Ludovic Courtès <ludovic.courtes <at> inria.fr>:
New bug report received and forwarded. Copy sent to gilles.marait <at> inria.fr, bug-guix <at> gnu.org. (Thu, 07 Dec 2023 10:18:01 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Ludovic Courtès <ludovic.courtes <at> inria.fr>
To: bug-guix <at> gnu.org
Subject: ‘guix shell --export-manifest’ ignores transformations for ‘-D’
 packages
Date: Thu, 07 Dec 2023 11:17:06 +0100
Hello!

‘--export-manifest’ does not apply transformations to packages preceded
by ‘-D’ (development environment):

--8<---------------cut here---------------start------------->8---
$ guix shell -D guile-git --with-branch=libgit2=main --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=libgit2=main --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=main"))))

(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’.




Information forwarded to bug-guix <at> gnu.org:
bug#67685; Package guix. (Wed, 04 Sep 2024 22:58:01 GMT) Full text and rfc822 format available.

Message #8 received at 67685 <at> debbugs.gnu.org (full text, mbox):

From: Evgenii Klimov <eugene.dev <at> lipklim.org>
To: 67685 <at> debbugs.gnu.org
Cc: ludovic.courtes <at> inria.fr
Subject: bug#67685: ‘guix shell --export-manifest’ ignores transformations
 for ‘-D’ packages
Date: Wed, 04 Sep 2024 23:55:56 +0100
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---




This bug report was last modified 291 days ago.

Previous Next


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