* bug#54942: Can't run guix upgrade when a package is installed with the --with-git-url transformation
@ 2022-04-14 16:45 SeerLite via Bug reports for GNU Guix
2022-04-18 19:08 ` Greg Hogan
` (2 more replies)
0 siblings, 3 replies; 6+ messages in thread
From: SeerLite via Bug reports for GNU Guix @ 2022-04-14 16:45 UTC (permalink / raw)
To: 54942
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@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 :)
^ permalink raw reply [flat|nested] 6+ messages in thread
* bug#54942: Can't run guix upgrade when a package is installed with the --with-git-url transformation
2022-04-14 16:45 bug#54942: Can't run guix upgrade when a package is installed with the --with-git-url transformation SeerLite via Bug reports for GNU Guix
@ 2022-04-18 19:08 ` Greg Hogan
2022-04-18 19:24 ` Maxime Devos
2022-04-28 22:54 ` Ludovic Courtès
2 siblings, 0 replies; 6+ messages in thread
From: Greg Hogan @ 2022-04-18 19:08 UTC (permalink / raw)
To: SeerLite; +Cc: 54942
[-- Attachment #1: Type: text/plain, Size: 1382 bytes --]
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@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@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 :)
>
>
>
>
[-- Attachment #2: Type: text/html, Size: 2224 bytes --]
^ permalink raw reply [flat|nested] 6+ messages in thread
* bug#54942: Can't run guix upgrade when a package is installed with the --with-git-url transformation
2022-04-14 16:45 bug#54942: Can't run guix upgrade when a package is installed with the --with-git-url transformation SeerLite via Bug reports for GNU Guix
2022-04-18 19:08 ` Greg Hogan
@ 2022-04-18 19:24 ` Maxime Devos
2022-04-28 22:54 ` Ludovic Courtès
2 siblings, 0 replies; 6+ messages in thread
From: Maxime Devos @ 2022-04-18 19:24 UTC (permalink / raw)
To: SeerLite, 54942
[-- Attachment #1: Type: text/plain, Size: 504 bytes --]
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@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.
[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 260 bytes --]
^ permalink raw reply [flat|nested] 6+ messages in thread
* bug#54942: Can't run guix upgrade when a package is installed with the --with-git-url transformation
2022-04-14 16:45 bug#54942: Can't run guix upgrade when a package is installed with the --with-git-url transformation SeerLite via Bug reports for GNU Guix
2022-04-18 19:08 ` Greg Hogan
2022-04-18 19:24 ` Maxime Devos
@ 2022-04-28 22:54 ` Ludovic Courtès
2022-05-05 21:58 ` Ludovic Courtès
2 siblings, 1 reply; 6+ messages in thread
From: Ludovic Courtès @ 2022-04-28 22:54 UTC (permalink / raw)
To: SeerLite; +Cc: 54942
Hi,
SeerLite <seerlite@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@2021.08.28 is not a Git
> reference
[...]
Maxime Devos <maximedevos@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@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’.
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2022-05-13 2:48 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-04-14 16:45 bug#54942: Can't run guix upgrade when a package is installed with the --with-git-url transformation SeerLite via Bug reports for GNU Guix
2022-04-18 19:08 ` Greg Hogan
2022-04-18 19:24 ` Maxime Devos
2022-04-28 22:54 ` Ludovic Courtès
2022-05-05 21:58 ` Ludovic Courtès
2022-05-13 2:47 ` SeerLite via Bug reports for GNU Guix
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).