You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
We're also going to need the ability to add mirrors for bootstrapping. ghcr.io isn't accessible from our clusters. We have to setup internal mirrors for that too.
We currently do the following:
Add the following bootstrap.yaml file in Spack's etc/spack directory.
Spack stores source mirror information in directories with a metadata.yaml file to describe it. Our solution works because we drop the metadata.yaml file in etc/spack, and then declare that etc/spack is also a sources dir so it will look for the metadata file there. It's super hacky. It would make more sense to actually set up a real source definition directory somewhere, but I was able to get our solution to work without any code changes.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Allows users to build from custom spack mirrors. Spack mirrors can be defined in
recipes/config.yamllike so:This will generate a site-scoped spack mirrors.yaml (via
spack mirror addcommand in the Makefile) located in$(BUILD_ROOT)/spack/etc/spackThe 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-publicif none of the user-defined mirrors provide it.