unofficial mirror of guix-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: zimoun <zimon.toutoune@gmail.com>
To: jgart <jgart@dismail.de>, guix-devel@gnu.org
Subject: Re: guix build -S 💛 --with-branch
Date: Thu, 09 Feb 2023 21:19:03 +0100	[thread overview]
Message-ID: <86a61mvbgo.fsf@gmail.com> (raw)
In-Reply-To: <17e2ec3e0e5f63cc158b25f6870bd424@dismail.de>

Hi,

On Thu, 09 Feb 2023 at 18:07, "jgart" <jgart@dismail.de> wrote:

> Just opening this thread for us to brainstorm how we can improve the
> symbiosis between guix build -S and --with-branch.

Well, indeed this bug could be fixed,

--8<---------------cut here---------------start------------->8---
$ guix build eless --with-branch=eless=tests -S
updating checkout of 'https://github.com/kaushalmodi/eless'...
retrieved commit fb9584e319152c38dfb64ab16d596eed7b00133f
Backtrace:
          13 (primitive-load "/home/simon/.config/guix/current/bin/guix")
In guix/ui.scm:
   2276:7 12 (run-guix . _)
  2239:10 11 (run-guix-command _ . _)
In ice-9/boot-9.scm:
  1752:10 10 (with-exception-handler _ _ #:unwind? _ #:unwind-for-type _)
In guix/status.scm:
    815:4  9 (call-with-status-report _ _)
In ice-9/boot-9.scm:
  1752:10  8 (with-exception-handler _ _ #:unwind? _ #:unwind-for-type _)
In guix/store.scm:
   661:37  7 (thunk)
   1300:8  6 (call-with-build-handler _ _)
   1300:8  5 (call-with-build-handler #<procedure 7f3bf4eef0c0 at guix/ui.scm:1171:2 (continue store things mode)> …)
In guix/scripts/build.scm:
   807:26  4 (_)
In srfi/srfi-1.scm:
    634:9  3 (for-each #<procedure show-derivation-outputs (derivation)> ("/gnu/store/0yd0l61i817qd31rklimqsz5gs…"))
In guix/ui.scm:
    907:2  2 (show-derivation-outputs _)
In ice-9/boot-9.scm:
  1685:16  1 (raise-exception _ #:continuable? _)
  1685:16  0 (raise-exception _ #:continuable? _)

ice-9/boot-9.scm:1685:16: In procedure raise-exception:
Throw to key `match-error' with args `("match" "no matching pattern" "/gnu/store/0yd0l61i817qd31rklimqsz5gsc7afcb-eless-fb9584e")'.
--8<---------------cut here---------------end--------------->8---

and instead return the expected Git checkout.

However, note that the store item returned by “guix build -S” is not a
Git repository, IIUC.


Cheers,
simon


      reply	other threads:[~2023-02-11  9:54 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-02-09 18:07 guix build -S 💛 --with-branch jgart
2023-02-09 20:19 ` zimoun [this message]

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=86a61mvbgo.fsf@gmail.com \
    --to=zimon.toutoune@gmail.com \
    --cc=guix-devel@gnu.org \
    --cc=jgart@dismail.de \
    /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).