Hi, On Thu, 09 Feb 2023 at 18:07, "jgart" <jg...@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