GNU bug report logs - #74794
`./pre-inst-env guix deploy' does not use packages from the git tree

Previous Next

Package: guix;

Reported by: Tomas Volf <~@wolfsden.cz>

Date: Wed, 11 Dec 2024 16:22:02 UTC

Severity: normal

To reply to this bug, email your comments to 74794 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 bug-guix <at> gnu.org:
bug#74794; Package guix. (Wed, 11 Dec 2024 16:22:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to Tomas Volf <~@wolfsden.cz>:
New bug report received and forwarded. Copy sent to bug-guix <at> gnu.org. (Wed, 11 Dec 2024 16:22:02 GMT) Full text and rfc822 format available.

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

From: Tomas Volf <~@wolfsden.cz>
To: bug-guix <at> gnu.org
Subject: `./pre-inst-env guix deploy' does not use packages from the git tree
Date: Wed, 11 Dec 2024 17:21:15 +0100
[Message part 1 (text/plain, inline)]
Hello,

during debugging #74787, I noticed that when ran via pre-inst-env, guix
deploy does not use packages from the local git tree.  I reverted the
commit da3c8a963f83c044568d99921480259eaa26a923 and applied the
following patch locally:

--8<---------------cut here---------------start------------->8---
diff --git a/guix/remote.scm b/guix/remote.scm
index a58ec2103c..1d4442da4f 100644
--- a/guix/remote.scm
+++ b/guix/remote.scm
@@ -67,6 +67,8 @@ (define* (remote-pipe-for-gexp lowered session #:optional become-command)
             `("-c"
               ,(shell-quote (lowered-gexp-sexp lowered)))))
 
+  (pk ((@ (ssh version) get-library-version)))
+
   (let ((pipe (apply open-remote-pipe* session OPEN_READ repl-command)))
     (when (eof-object? (peek-char pipe))
       (let ((status (channel-get-exit-status pipe)))
--8<---------------cut here---------------end--------------->8---

Now building the package produces 0.17.0 as expected:

--8<---------------cut here---------------start------------->8---
$ ./pre-inst-env guix build guile-ssh
/gnu/store/x3ikdxld27l1ikldwkijlv42qcgscw8w-guile-ssh-0.17.0-debug
/gnu/store/0hrwzamw41k1gl6ysnssfgzhfx3fx299-guile-ssh-0.17.0
--8<---------------cut here---------------end--------------->8---

But running guix deploy still uses 0.18.0:

--8<---------------cut here---------------start------------->8---
$ ./pre-inst-env guix deploy ...

;;; ("0.18.0")
--8<---------------cut here---------------end--------------->8---

I am not sure whether this is intended, but I definitely did not expect
it and it makes local experimentation harder.

Have a nice day,
Tomas

-- 
There are only two hard things in Computer Science:
cache invalidation, naming things and off-by-one errors.
[signature.asc (application/pgp-signature, inline)]

This bug report was last modified 190 days ago.

Previous Next


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