unofficial mirror of guix-devel@gnu.org 
 help / color / mirror / code / Atom feed
* guix build -S 💛 --with-branch
@ 2023-02-09 18:07 jgart
  2023-02-09 20:19 ` zimoun
  0 siblings, 1 reply; 2+ messages in thread
From: jgart @ 2023-02-09 18:07 UTC (permalink / raw)
  To: guix-devel

Hi Guixers,

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

From a #guix irc conversation earlier today with civodul:

jgart:
What do people think of having a guix clone command that passes the result of (-> network-manager (package-source) (origin-uri)) to git clone? -> is from guile-pipe package in upstream guix


civodul:
> hey! sounds interesting; there's some overlap with "guix build -S" and with "--with-branch" and the likes, i wonder how we could improve symbiosis :-)

all best,

jgart

https://github.com/joshwalters/guile-pipe


^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: guix build -S 💛 --with-branch
  2023-02-09 18:07 guix build -S 💛 --with-branch jgart
@ 2023-02-09 20:19 ` zimoun
  0 siblings, 0 replies; 2+ messages in thread
From: zimoun @ 2023-02-09 20:19 UTC (permalink / raw)
  To: jgart, guix-devel

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


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2023-02-11  9:54 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-02-09 18:07 guix build -S 💛 --with-branch jgart
2023-02-09 20:19 ` zimoun

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).