[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Channel details of profile generation
From: |
zimoun |
Subject: |
Re: Channel details of profile generation |
Date: |
Wed, 30 Dec 2020 14:41:53 +0100 |
Hi,
On Mon, 28 Dec 2020 at 17:52, Phil <phil@beadling.co.uk> wrote:
> guix pull -p my-profile -l
>
> But this seems to crash:
I am surprised.
> blah@phil:~$ guix pull -p my-profile -l
> \Generation 1 Dec 22 2020 17:24:53\
> my-test-repo 1.49-3.f08de71
> \Generation 2 Dec 22 2020 17:50:28\
> guix 13d532a
> repository URL: https://git.savannah.gnu.org/git/guix.git
> branch: master
> commit: \13d532a91178be7b6919b85685b150f941116dfc\
> foo-packages 8fc6134
> repository URL: ssh://git@localgit:7999/foo/foo-packages.git
> branch: master
> commit: 3dc613449f59ba8a8fdc35cadb7667ddaaf7fd9b
> Backtrace:
> 11 (primitive-load "/home/blah/.config/guix/current/bin/…")
> In guix/ui.scm:
> 2127:12 10 (run-guix-command _ . _)
> In ice-9/boot-9.scm:
> 1736:10 9 (with-exception-handler _ _ #:unwind? _ # _)
> 1731:15 8 (with-exception-handler #<procedure 7fa030b82b40 at ic…> …)
> 1731:15 7 (with-exception-handler #<procedure 7fa030b82b10 at ic…> …)
> 1731:15 6 (with-exception-handler #<procedure 7fa030c46390 at ic…> …)
> In guix/scripts/pull.scm:
> 636:4 5 (_)
> In guix/memoization.scm:
> 100:0 4 (_ #<hash-table 7fa030b4c780 0/31> "guix-profiles/py-t…" …)
> In guix/scripts/pull.scm:
> 538:21 3 (_)
> In guix/inferior.scm:
> 256:2 2 (inferior-available-packages #f)
> 251:13 1 (send-inferior-request (defined? (quote #)) #f)
> In ice-9/boot-9.scm:
> 1669:16 0 (raise-exception _ #:continuable? _)
>
> ice-9/boot-9.scm:1669:16: In procedure raise-exception:
> In procedure struct-vtable: Wrong type argument in position 1 (expecting
> struct): #f
Could you share how you generated the profile ’my-profile’?
> Os there not already a cannonical way to do this in Guix? If yes,
> what is it?
Well, I am missing what you want to achieve.
> If no is my approach below sane, or is what I'm trying to achieve
> ill-conceived in any way?
The profile used by ’pull’, by default ~/.config/guix/current, is
somehow special compared to other profiles as ~/.guix-profile.
> Finally, what's the intended difference between 'source and
> 'provenance?
Compare:
cat ~/.config/guix/current/manifest | grep -E '(source|provenance)'
cat ~/.guix-profile/manifest | grep -E '(source|provenance)'
It is my understanding and maybe someone will correct me: 'source is the
“properties“ tracking the channels from where the “pull” comes and
'provenance is the “properties” tracking the channel from where the
packages come from.
Well, 'source is used by “guix describe” but 'provenance is not used––it
is by “guix pack --save-provenance” but that’s another story.
> To my mind - If a profile generation has a manifest which contains
> branch/commit details of the branches packages were created with - it
> seems reasonable and useful to report that information?
Report where?
Hope that helps,
simon