GNU bug report logs - #54942
Can't run guix upgrade when a package is installed with the --with-git-url transformation

Previous Next

Package: guix;

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.

Full log


View this message in rfc822 format

From: help-debbugs <at> gnu.org (GNU bug Tracking System)
To: SeerLite <seerlite <at> nixnet.email>
Subject: bug#54942: closed (Re: bug#54942: Can't run guix upgrade when a
 package is installed with the --with-git-url transformation)
Date: Thu, 05 May 2022 21:59:02 +0000
[Message part 1 (text/plain, inline)]
Your bug report

#54942: Can't run guix upgrade when a package is installed with the --with-git-url transformation

which was filed against the guix package, has been closed.

The explanation is attached below, along with your original report.
If you require more details, please reply to 54942 <at> debbugs.gnu.org.

-- 
54942: https://debbugs.gnu.org/cgi/bugreport.cgi?bug=54942
GNU Bug Tracking System
Contact help-debbugs <at> gnu.org with problems
[Message part 2 (message/rfc822, inline)]
From: Ludovic Courtès <ludo <at> gnu.org>
To: SeerLite <seerlite <at> nixnet.email>
Cc: 54942-done <at> debbugs.gnu.org
Subject: Re: bug#54942: Can't run guix upgrade when a package is installed
 with the --with-git-url transformation
Date: Thu, 05 May 2022 23:58:21 +0200
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’.

[Message part 3 (message/rfc822, inline)]
From: SeerLite <seerlite <at> nixnet.email>
To: bug-guix <at> gnu.org
Subject: Can't run guix upgrade when a package is installed with the
 --with-git-url transformation
Date: Thu, 14 Apr 2022 12:45:11 -0400
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 :)



This bug report was last modified 3 years and 6 days ago.

Previous Next


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