Skip to content

Fix mirroring of specific specs#545

Merged
climbfuji merged 1 commit intoJCSDA:spack-stack-devfrom
AlexanderRichert-NOAA:mirror_fix_may25
May 31, 2025
Merged

Fix mirroring of specific specs#545
climbfuji merged 1 commit intoJCSDA:spack-stack-devfrom
AlexanderRichert-NOAA:mirror_fix_may25

Conversation

@AlexanderRichert-NOAA
Copy link
Collaborator

@AlexanderRichert-NOAA AlexanderRichert-NOAA commented May 27, 2025

This PR brings in the changes from spack#50307, which will allow the spack mirror create to use the existing concretization to decide which packages to grab, which is generally necessary when only source mirroring a subset of packages in an environment. This in turn will let me simplify the weekly build logic for Acorn :)

Tested on Acorn.

Fixes JCSDA/spack-stack#1646

* cmd/mirror.py: match CLI specs to concrete specs in env

* Allow using 'mirror create -a/--all' to match multiple concrete specs

* remove unit test preventing 'mirror create -a <spec>'

* Add test_mirror_spec_from_env() unit test (cmd/mirror.py)
@climbfuji climbfuji merged commit d7d7b63 into JCSDA:spack-stack-dev May 31, 2025
15 checks passed
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.

Bring in mirror fix from main Spack

2 participants