GNU bug report logs -
#54942
Can't run guix upgrade when a package is installed with the --with-git-url transformation
Previous Next
Reported by: SeerLite <seerlite <at> nixnet.email>
Date: Thu, 14 Apr 2022 16:46:01 UTC
Severity: important
Done: Ludovic Courtès <ludo <at> gnu.org>
Bug is archived. No further changes may be made.
To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 54942 in the body.
You can then email your comments to 54942 AT debbugs.gnu.org in the normal way.
Toggle the display of automated, internal messages from the tracker.
Report forwarded
to
bug-guix <at> gnu.org
:
bug#54942
; Package
guix
.
(Thu, 14 Apr 2022 16:46:01 GMT)
Full text and
rfc822 format available.
Acknowledgement sent
to
SeerLite <seerlite <at> nixnet.email>
:
New bug report received and forwarded. Copy sent to
bug-guix <at> gnu.org
.
(Thu, 14 Apr 2022 16:46:01 GMT)
Full text and
rfc822 format available.
Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):
Hi!
I installed a package with --with-git-url and --with-branch to my profile:
guix install kakoune
--with-git-url=kakoune=https://github.com/mawww/kakoune.git
--with-branch=kakoune=breaking-cleanups
However, now I can't run `guix upgrade`. I get the following error:
guix upgrade: error: the source of kakoune <at> 2021.08.28 is not a Git
reference
I also tried to add the same transformation options to `guix upgrade`,
but I got the same error.
Is installing packages with the --with-git-url transformation to
profiles not supported? Or is this a bug?
Ideally I'd like `guix upgrade` to remember the way in which this
package was installed and update it accordingly. In this case by
fetching the latest changes from the breaking-cleanups branch. Is this
not how this transformation option works?
Thanks :)
Information forwarded
to
bug-guix <at> gnu.org
:
bug#54942
; Package
guix
.
(Mon, 18 Apr 2022 19:10:01 GMT)
Full text and
rfc822 format available.
Message #8 received at 54942 <at> debbugs.gnu.org (full text, mbox):
[Message part 1 (text/plain, inline)]
Hi,
The manual page Defining Package Variants [0] gives an example translating
command-line options into a Guix manifest. The full list of options is
found in the source [1] (including with-git-url).
[0] https://guix.gnu.org/manual/en/html_node/Defining-Package-Variants.html
[1]
https://git.savannah.gnu.org/cgit/guix.git/tree/guix/transformations.scm?id=237d90a7808cfdced34b34595eba16632cbcb89e#n794
Greg
On Sat, Apr 16, 2022 at 8:18 AM SeerLite via Bug reports for GNU Guix <
bug-guix <at> gnu.org> wrote:
> Hi!
>
> I installed a package with --with-git-url and --with-branch to my profile:
>
> guix install kakoune
> --with-git-url=kakoune=https://github.com/mawww/kakoune.git
> --with-branch=kakoune=breaking-cleanups
>
> However, now I can't run `guix upgrade`. I get the following error:
>
> guix upgrade: error: the source of kakoune <at> 2021.08.28 is not a Git
> reference
>
> I also tried to add the same transformation options to `guix upgrade`,
> but I got the same error.
>
>
> Is installing packages with the --with-git-url transformation to
> profiles not supported? Or is this a bug?
>
> Ideally I'd like `guix upgrade` to remember the way in which this
> package was installed and update it accordingly. In this case by
> fetching the latest changes from the breaking-cleanups branch. Is this
> not how this transformation option works?
>
> Thanks :)
>
>
>
>
[Message part 2 (text/html, inline)]
Information forwarded
to
bug-guix <at> gnu.org
:
bug#54942
; Package
guix
.
(Mon, 18 Apr 2022 19:25:01 GMT)
Full text and
rfc822 format available.
Message #11 received at 54942 <at> debbugs.gnu.org (full text, mbox):
[Message part 1 (text/plain, inline)]
SeerLite via Bug reports for GNU Guix schreef op do 14-04-2022 om 12:45
[-0400]:
> However, now I can't run `guix upgrade`. I get the following error:
>
> guix upgrade: error: the source of kakoune <at> 2021.08.28 is not a Git
> reference
I guess the problem is that 'with-branch'/'with-commit' come before
'with-git-url' in
<https://git.savannah.gnu.org/cgit/guix.git/tree/guix/transformations.scm?id=237d90a7808cfdced34b34595eba16632cbcb89e#n794>
(untested!).
Greetings,
Maxime.
[signature.asc (application/pgp-signature, inline)]
Severity set to 'important' from 'normal'
Request was from
Ludovic Courtès <ludo <at> gnu.org>
to
control <at> debbugs.gnu.org
.
(Thu, 28 Apr 2022 22:50:03 GMT)
Full text and
rfc822 format available.
Information forwarded
to
bug-guix <at> gnu.org
:
bug#54942
; Package
guix
.
(Thu, 28 Apr 2022 22:55:02 GMT)
Full text and
rfc822 format available.
Message #16 received at 54942 <at> debbugs.gnu.org (full text, mbox):
Hi,
SeerLite <seerlite <at> nixnet.email> skribis:
> I installed a package with --with-git-url and --with-branch to my profile:
>
> guix install kakoune
> --with-git-url=kakoune=https://github.com/mawww/kakoune.git
> --with-branch=kakoune=breaking-cleanups
>
> However, now I can't run `guix upgrade`. I get the following error:
>
> guix upgrade: error: the source of kakoune <at> 2021.08.28 is not a Git
> reference
[...]
Maxime Devos <maximedevos <at> telenet.be> skribis:
> I guess the problem is that 'with-branch'/'with-commit' come before
> 'with-git-url' in
> <https://git.savannah.gnu.org/cgit/guix.git/tree/guix/transformations.scm?id=237d90a7808cfdced34b34595eba16632cbcb89e#n794>
> (untested!).
My guess is rather than the profile records (or replays) transformations
in the wrong order:
--8<---------------cut here---------------start------------->8---
$ guix shell kakoune --with-git-url=kakoune=https://github.com/mawww/kakoune.git --with-branch=kakoune=breaking-cleanups --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-git-url
.
"kakoune=https://github.com/mawww/kakoune.git")
(with-branch . "kakoune=breaking-cleanups"))))
(packages->manifest
(list (transform1 (specification->package "kakoune"))))
$ guix shell kakoune --with-git-url=kakoune=https://github.com/mawww/kakoune.git --with-branch=kakoune=breaking-cleanups --export-manifest > /tmp/m.scm
$ guix build -m /tmp/m.scm -v1
guix build: error: the source of kakoune <at> 2021.08.28 is not a Git reference
--8<---------------cut here---------------end--------------->8---
If you change the order of both options in the alist passed to
‘options->transformations’, it’s all good.
Now we need to find the place where things are being reversed…
Ludo’.
Reply sent
to
Ludovic Courtès <ludo <at> gnu.org>
:
You have taken responsibility.
(Thu, 05 May 2022 21:59:02 GMT)
Full text and
rfc822 format available.
Notification sent
to
SeerLite <seerlite <at> nixnet.email>
:
bug acknowledged by developer.
(Thu, 05 May 2022 21:59:02 GMT)
Full text and
rfc822 format available.
Message #21 received at 54942-done <at> debbugs.gnu.org (full text, mbox):
Hi,
Ludovic Courtès <ludo <at> gnu.org> skribis:
> SeerLite <seerlite <at> nixnet.email> skribis:
>
>> I installed a package with --with-git-url and --with-branch to my profile:
>>
>> guix install kakoune
>> --with-git-url=kakoune=https://github.com/mawww/kakoune.git
>> --with-branch=kakoune=breaking-cleanups
>>
>> However, now I can't run `guix upgrade`. I get the following error:
>>
>> guix upgrade: error: the source of kakoune <at> 2021.08.28 is not a Git
>> reference
>
> [...]
>
> Maxime Devos <maximedevos <at> telenet.be> skribis:
>
>> I guess the problem is that 'with-branch'/'with-commit' come before
>> 'with-git-url' in
>> <https://git.savannah.gnu.org/cgit/guix.git/tree/guix/transformations.scm?id=237d90a7808cfdced34b34595eba16632cbcb89e#n794>
>> (untested!).
>
> My guess is rather than the profile records (or replays) transformations
> in the wrong order:
I believe this is fixed by 0f024554e63a49e20c2a7a67e928073c266bf5c5.
Please let me know if anything’s wrong!
Ludo’.
Information forwarded
to
bug-guix <at> gnu.org
:
bug#54942
; Package
guix
.
(Fri, 13 May 2022 02:48:02 GMT)
Full text and
rfc822 format available.
Message #24 received at 54942-done <at> debbugs.gnu.org (full text, mbox):
On 5/5/22 17:58, Ludovic Courtès wrote:
> I believe this is fixed by 0f024554e63a49e20c2a7a67e928073c266bf5c5.
>
> Please let me know if anything’s wrong!
>
> Ludo’.
Thank you, works perfectly now! :)
bug archived.
Request was from
Debbugs Internal Request <help-debbugs <at> gnu.org>
to
internal_control <at> debbugs.gnu.org
.
(Fri, 10 Jun 2022 11:24:06 GMT)
Full text and
rfc822 format available.
This bug report was last modified 1 year and 320 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.