[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
03/09: git-download: Honor the ‘GUIX_DOWNLOAD_FALLBACK_TEST’ environment
From: |
guix-commits |
Subject: |
03/09: git-download: Honor the ‘GUIX_DOWNLOAD_FALLBACK_TEST’ environment variable. |
Date: |
Tue, 26 Sep 2023 11:42:42 -0400 (EDT) |
civodul pushed a commit to branch master
in repository guix.
commit c7ed1e01600a5b37599ab50a30b2c41da646b1f4
Author: Ludovic Courtès <ludo@gnu.org>
AuthorDate: Mon Sep 11 11:33:41 2023 +0200
git-download: Honor the ‘GUIX_DOWNLOAD_FALLBACK_TEST’ environment variable.
* guix/git-download.scm (git-fetch): Honor ‘%download-fallback-test’.
---
guix/git-download.scm | 7 ++++++-
1 file changed, 6 insertions(+), 1 deletion(-)
diff --git a/guix/git-download.scm b/guix/git-download.scm
index 8989b1b463..f1f19397c6 100644
--- a/guix/git-download.scm
+++ b/guix/git-download.scm
@@ -28,6 +28,7 @@
#:use-module (guix packages)
#:use-module (guix modules)
#:autoload (guix build-system gnu) (standard-packages)
+ #:autoload (guix download) (%download-fallback-test)
#:autoload (git bindings) (libgit2-init!)
#:autoload (git repository) (repository-open
repository-close!
@@ -161,7 +162,11 @@ HASH-ALGO (a symbol). Use NAME as the file name, or a
generic name if #f."
;; downloads.
#:script-name "git-download"
#:env-vars
- `(("git url" . ,(git-reference-url ref))
+ `(("git url" . ,(match (%download-fallback-test)
+ ('content-addressed-mirrors
+ "https://example.org/does-not-exist")
+ (_
+ (git-reference-url ref))))
("git commit" . ,(git-reference-commit ref))
("git recursive?" . ,(object->string
(git-reference-recursive? ref))))
- branch master updated (4d904f2b16 -> ba21eeb565), guix-commits, 2023/09/26
- 05/09: daemon: Add “git-download” built-in builder., guix-commits, 2023/09/26
- 04/09: perform-download: Remove unused one-argument clause., guix-commits, 2023/09/26
- 03/09: git-download: Honor the ‘GUIX_DOWNLOAD_FALLBACK_TEST’ environment variable.,
guix-commits <=
- 09/09: tests: Assume ‘git’ is always available., guix-commits, 2023/09/26
- 06/09: build: Add dependency on Git., guix-commits, 2023/09/26
- 07/09: perform-download: Use the ‘git’ command captured at configure time., guix-commits, 2023/09/26
- 02/09: git-download: Move fallback code to (guix build git)., guix-commits, 2023/09/26
- 01/09: tests: Adjust ‘guix graph --path’ test to latest Emacs changes., guix-commits, 2023/09/26
- 08/09: git-download: Use “builtin:git-download” when available., guix-commits, 2023/09/26