unofficial mirror of bug-guix@gnu.org 
 help / color / mirror / code / Atom feed
* bug#34136: guix pull -l fails on fresh user profiles
@ 2019-01-19 17:55 Pierre Neidhardt
  2019-01-20 22:56 ` Ludovic Courtès
  0 siblings, 1 reply; 3+ messages in thread
From: Pierre Neidhardt @ 2019-01-19 17:55 UTC (permalink / raw)
  To: 34136

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

Switch to a new user, or simply log in as 'root' if you've never "guix
pull"ed with it, then

--8<---------------cut here---------------start------------->8---
# guix pull -l
Backtrace:
           8 (apply-smob/1 #<catch-closure 11508e0>)
In ice-9/boot-9.scm:
    705:2  7 (call-with-prompt _ _ #<procedure default-prompt-handle…>)
In ice-9/eval.scm:
    619:8  6 (_ #(#(#<directory (guile-user) 11d2140>)))
In guix/ui.scm:
  1644:12  5 (run-guix-command _ . _)
In ice-9/boot-9.scm:
    829:9  4 (catch srfi-34 #<procedure 2e24be0 at guix/ui.scm:622:…> …)
    829:9  3 (catch system-error #<procedure 2e24c80 at guix/script…> …)
    829:9  2 (catch git-error #<procedure 2e24b40 at guix/scripts/p…> …)
    829:9  1 (catch system-error #<procedure 2e28c40 at guix/script…> …)
In unknown file:
           0 (raise #<condition &profile-not-found-error [profile: "…>)

ERROR: In procedure raise:
Wrong type (expecting exact integer): #<condition &profile-not-found-error [profile: "/var/guix/profiles/per-user/root/current-guix"] 2e1e8c0>
--8<---------------cut here---------------end--------------->8---

I think we should make `guix pull -l' return a value that can be used
meaningfully in deployment scripts.  For instance, a non-zero
exit code could mean this is a fresh user profile.

Thoughts?

-- 
Pierre Neidhardt
https://ambrevar.xyz/

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

^ permalink raw reply	[flat|nested] 3+ messages in thread

* bug#34136: guix pull -l fails on fresh user profiles
  2019-01-19 17:55 bug#34136: guix pull -l fails on fresh user profiles Pierre Neidhardt
@ 2019-01-20 22:56 ` Ludovic Courtès
  2019-01-21  7:42   ` Pierre Neidhardt
  0 siblings, 1 reply; 3+ messages in thread
From: Ludovic Courtès @ 2019-01-20 22:56 UTC (permalink / raw)
  To: Pierre Neidhardt; +Cc: 34136-done

Pierre Neidhardt <mail@ambrevar.xyz> skribis:

> Switch to a new user, or simply log in as 'root' if you've never "guix
> pull"ed with it, then
>
> # guix pull -l
> Backtrace:
>            8 (apply-smob/1 #<catch-closure 11508e0>)
> In ice-9/boot-9.scm:
>     705:2  7 (call-with-prompt _ _ #<procedure default-prompt-handle…>)
> In ice-9/eval.scm:
>     619:8  6 (_ #(#(#<directory (guile-user) 11d2140>)))
> In guix/ui.scm:
>   1644:12  5 (run-guix-command _ . _)
> In ice-9/boot-9.scm:
>     829:9  4 (catch srfi-34 #<procedure 2e24be0 at guix/ui.scm:622:…> …)
>     829:9  3 (catch system-error #<procedure 2e24c80 at guix/script…> …)
>     829:9  2 (catch git-error #<procedure 2e24b40 at guix/scripts/p…> …)
>     829:9  1 (catch system-error #<procedure 2e28c40 at guix/script…> …)
> In unknown file:
>            0 (raise #<condition &profile-not-found-error [profile: "…>)
>
> ERROR: In procedure raise:
> Wrong type (expecting exact integer): #<condition &profile-not-found-error [profile: "/var/guix/profiles/per-user/root/current-guix"] 2e1e8c0>

Fixed in c49b45c917eff17122aea5f7a57ae4cef02f1003.  A missing import and
the wrong ‘raise’ was being used.

> I think we should make `guix pull -l' return a value that can be used
> meaningfully in deployment scripts.  For instance, a non-zero
> exit code could mean this is a fresh user profile.

Yep, that’s what was intended and what happens now.  :-)

Thanks,
Ludo’.

^ permalink raw reply	[flat|nested] 3+ messages in thread

* bug#34136: guix pull -l fails on fresh user profiles
  2019-01-20 22:56 ` Ludovic Courtès
@ 2019-01-21  7:42   ` Pierre Neidhardt
  0 siblings, 0 replies; 3+ messages in thread
From: Pierre Neidhardt @ 2019-01-21  7:42 UTC (permalink / raw)
  To: Ludovic Courtès; +Cc: 34136-done

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

Great, thanks!

-- 
Pierre Neidhardt
https://ambrevar.xyz/

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

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2019-01-21  7:43 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-01-19 17:55 bug#34136: guix pull -l fails on fresh user profiles Pierre Neidhardt
2019-01-20 22:56 ` Ludovic Courtès
2019-01-21  7:42   ` Pierre Neidhardt

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).