Skip to content

Feature/source mirrors#283

Open
grodzki-lanl wants to merge 4 commits intoeth-cscs:mainfrom
grodzki-lanl:feature/source-mirrors
Open

Feature/source mirrors#283
grodzki-lanl wants to merge 4 commits intoeth-cscs:mainfrom
grodzki-lanl:feature/source-mirrors

Conversation

@grodzki-lanl
Copy link

Allows users to build from custom spack mirrors. Spack mirrors can be defined in recipes/config.yaml like so:

source_mirrors:
  <mirror1-name>: <url>
  <mirror2-name>: <url>

This will generate a site-scoped spack mirrors.yaml (via spack mirror add command in the Makefile) located in $(BUILD_ROOT)/spack/etc/spack

mirrors:
  mirror1-name: <url>
  mirror2-name: <url>
  spack-public:
    binary: false
    url: https://mirror.spack.io

The mirrors have precedence from top to bottom: spack will try to fetch from the first mirror, and will move down the list if the package is not found, defaulting to spack-public if none of the user-defined mirrors provide it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants