diff options
author | Arun Isaac | 2022-02-10 00:00:37 +0530 |
---|---|---|
committer | Arun Isaac | 2022-02-10 00:00:37 +0530 |
commit | 53a114dd456211364f729f74918775c9133cc67b (patch) | |
tree | 87e6c73c62ff6ff7e0bc9fde200a73395a6e5bb2 /forge/forge.scm | |
parent | 8bc27ffef8f6636aeb2ef9f58b2fe205d812ce7a (diff) | |
download | guix-forge-53a114dd456211364f729f74918775c9133cc67b.tar.gz guix-forge-53a114dd456211364f729f74918775c9133cc67b.tar.lz guix-forge-53a114dd456211364f729f74918775c9133cc67b.zip |
forge: Print current commit before running CI job.
This aids debugging especially when a job fails.
* forge/build/git.scm (hline): New function.
(download-git-to-store): Add #:show-commit? keyword argument. When
show-commit? is #t, print current commit.
* forge/forge.scm (gexp-producer->job-script): Pass #t as
#:show-commit? to latest-git-checkout.
Diffstat (limited to 'forge/forge.scm')
-rw-r--r-- | forge/forge.scm | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/forge/forge.scm b/forge/forge.scm index d3bb879..199c4c3 100644 --- a/forge/forge.scm +++ b/forge/forge.scm @@ -217,7 +217,8 @@ derivation to run." (run-with-store store (mlet* %store-monad ((git-checkout (latest-git-checkout #$git-checkout-name #$git-repository - #$git-branch)) + #$git-branch + #:show-commit? #t)) (tests-drv (gexp->derivation #$derivation-name (#$gexp-producer git-checkout) #:guile-for-build (read-derivation-from-file |