unofficial mirror of bug-guix@gnu.org 
 help / color / mirror / code / Atom feed
* bug#74794: `./pre-inst-env guix deploy' does not use packages from the git tree
@ 2024-12-11 16:21 Tomas Volf
  0 siblings, 0 replies; only message in thread
From: Tomas Volf @ 2024-12-11 16:21 UTC (permalink / raw)
  To: 74794

[-- Attachment #1: Type: text/plain, Size: 1781 bytes --]


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.

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 853 bytes --]

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2024-12-11 17:51 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-12-11 16:21 bug#74794: `./pre-inst-env guix deploy' does not use packages from the git tree Tomas Volf

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/guix.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).