diff options
author | Jonathon Anderson <17242663+blue42u@users.noreply.github.com> | 2023-08-28 17:03:29 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-08-28 15:03:29 -0700 |
commit | d9d1eb24f9e1ef3550256ca16d5b0c567c3102c7 (patch) | |
tree | 31fd623ec8f137d4d8ed3e386a657e7b7e200165 | |
parent | cef59ad0bf42d9ce14da4900d128b593ebba4dc3 (diff) | |
download | spack-d9d1eb24f9e1ef3550256ca16d5b0c567c3102c7.tar.gz spack-d9d1eb24f9e1ef3550256ca16d5b0c567c3102c7.tar.bz2 spack-d9d1eb24f9e1ef3550256ca16d5b0c567c3102c7.tar.xz spack-d9d1eb24f9e1ef3550256ca16d5b0c567c3102c7.zip |
modules: copy matched config to prevent bleed (#39421)
-rw-r--r-- | lib/spack/spack/modules/common.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/spack/spack/modules/common.py b/lib/spack/spack/modules/common.py index 5667de65b9..4dda4b183b 100644 --- a/lib/spack/spack/modules/common.py +++ b/lib/spack/spack/modules/common.py @@ -178,7 +178,7 @@ def merge_config_rules(configuration, spec): if spec.satisfies(constraint): if hasattr(constraint, "override") and constraint.override: spec_configuration = {} - update_dictionary_extending_lists(spec_configuration, action) + update_dictionary_extending_lists(spec_configuration, copy.deepcopy(action)) # Transform keywords for dependencies or prerequisites into a list of spec |