guix-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

01/01: download: Remove hydra from content-addressed URL list


From: guix-commits
Subject: 01/01: download: Remove hydra from content-addressed URL list
Date: Sat, 29 Jun 2019 10:11:23 -0400 (EDT)

nckx pushed a commit to branch master
in repository guix.

commit 87a90486ca63939d0ef73bdc8e9a26fef03afccb
Author: Tobias Geerinckx-Rice <address@hidden>
Date:   Fri Jun 28 16:24:44 2019 +0200

    download: Remove hydra from content-addressed URL list
    
    * guix/build/download-nar.scm (urls-for-item): Remove
    mirror.hydra.gnu.org.
    * guix/download.scm (%content-addressed-mirrors): Likewise.
---
 guix/build/download-nar.scm | 6 +++---
 guix/download.scm           | 1 -
 2 files changed, 3 insertions(+), 4 deletions(-)

diff --git a/guix/build/download-nar.scm b/guix/build/download-nar.scm
index 681f222..cb14603 100644
--- a/guix/build/download-nar.scm
+++ b/guix/build/download-nar.scm
@@ -42,10 +42,10 @@
   "Return the fallback nar URL for ITEM--e.g.,
 \"/gnu/store/cabbag3…-foo-1.2-checkout\"."
   ;; Here we hard-code nar URLs without checking narinfos.  That's probably OK
-  ;; though.
+  ;; though.  Use berlin.guixsd.org instead of its ci.guix.gnu.org front end to
+  ;; avoid sending these requests to CDN providers without user consent.
   ;; TODO: Use HTTPS?  The downside is the extra dependency.
-  (let ((bases '("http://mirror.hydra.gnu.org/guix";
-                 "http://berlin.guixsd.org";))
+  (let ((bases '("http://berlin.guixsd.org";))
         (item  (basename item)))
     (append (map (cut string-append <> "/nar/gzip/" item) bases)
             (map (cut string-append <> "/nar/" item) bases))))
diff --git a/guix/download.scm b/guix/download.scm
index cd5d61c..fe680be 100644
--- a/guix/download.scm
+++ b/guix/download.scm
@@ -394,7 +394,6 @@
                        '(guix base16) '(bytevector->base16-string))
 
      (list (guix-publish "ci.guix.gnu.org")
-           (guix-publish "mirror.hydra.gnu.org")
            (lambda (file algo hash)
              ;; 'tarballs.nixos.org' supports several algorithms.
              (string-append "https://tarballs.nixos.org/";



reply via email to

[Prev in Thread] Current Thread [Next in Thread]