summaryrefslogtreecommitdiff
path: root/etc
diff options
context:
space:
mode:
authorHarmen Stoppels <harmenstoppels@gmail.com>2023-07-13 13:29:17 +0200
committerGitHub <noreply@github.com>2023-07-13 11:29:17 +0000
commit522d9e260bac3692dcec104dc1d6a90c5acd2a04 (patch)
treea286562411a4e796df56f9b4029e496521043e5d /etc
parent3261889e3a93ab942fd1776188c7ad31524574b4 (diff)
downloadspack-522d9e260bac3692dcec104dc1d6a90c5acd2a04.tar.gz
spack-522d9e260bac3692dcec104dc1d6a90c5acd2a04.tar.bz2
spack-522d9e260bac3692dcec104dc1d6a90c5acd2a04.tar.xz
spack-522d9e260bac3692dcec104dc1d6a90c5acd2a04.zip
mirrors: distinguish between source/binary mirror; simplify schema (#34523)
Allow the following formats: ```yaml mirrors: name: <url> ``` ```yaml mirrors: name: url: s3://xyz access_pair: [x, y] ``` ```yaml mirrors: name: fetch: http://xyz push: url: s3://xyz access_pair: [x, y] ``` And reserve two new properties to indicate the mirror type (e.g. mirror.spack.io is a source mirror, not a binary cache) ```yaml mirrors: spack-public: source: true binary: false url: https://mirror.spack.io ```
Diffstat (limited to 'etc')
-rw-r--r--etc/spack/defaults/mirrors.yaml4
1 files changed, 3 insertions, 1 deletions
diff --git a/etc/spack/defaults/mirrors.yaml b/etc/spack/defaults/mirrors.yaml
index 4db4f7dedb..0891ae4504 100644
--- a/etc/spack/defaults/mirrors.yaml
+++ b/etc/spack/defaults/mirrors.yaml
@@ -1,2 +1,4 @@
mirrors:
- spack-public: https://mirror.spack.io
+ spack-public:
+ binary: false
+ url: https://mirror.spack.io