From: "Ludovic Courtès" <ludo@gnu.org>
To: SeerLite <seerlite@nixnet.email>
Cc: 54942@debbugs.gnu.org
Subject: bug#54942: Can't run guix upgrade when a package is installed with the --with-git-url transformation
Date: Fri, 29 Apr 2022 00:54:25 +0200 [thread overview]
Message-ID: <87fslwakf2.fsf@gnu.org> (raw)
In-Reply-To: <55a97413-14a1-fbca-2c55-73b6e3782b47@nixnet.email> (seerlite@nixnet.email's message of "Thu, 14 Apr 2022 12:45:11 -0400")
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’.
next prev parent reply other threads:[~2022-04-28 22:55 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
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 [this message]
2022-05-05 21:58 ` Ludovic Courtès
2022-05-13 2:47 ` SeerLite via Bug reports for GNU Guix
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://guix.gnu.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87fslwakf2.fsf@gnu.org \
--to=ludo@gnu.org \
--cc=54942@debbugs.gnu.org \
--cc=seerlite@nixnet.email \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).