From 522d9e260bac3692dcec104dc1d6a90c5acd2a04 Mon Sep 17 00:00:00 2001 From: Harmen Stoppels Date: Thu, 13 Jul 2023 13:29:17 +0200 Subject: mirrors: distinguish between source/binary mirror; simplify schema (#34523) Allow the following formats: ```yaml mirrors: name: ``` ```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 ``` --- etc/spack/defaults/mirrors.yaml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'etc') 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 -- cgit v1.2.3-60-g2f50