diff options
author | Massimiliano Culpo <massimiliano.culpo@gmail.com> | 2021-11-05 00:17:00 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-11-04 16:17:00 -0700 |
commit | 839057e98db8fa4840cd3a56526fdb073c03908b (patch) | |
tree | 66cc7877a7f1cf5258191a993d121422363fb0d6 | |
parent | f2a42ac4c68a0f9433ddb853ca07ee88314eb654 (diff) | |
download | spack-839057e98db8fa4840cd3a56526fdb073c03908b.tar.gz spack-839057e98db8fa4840cd3a56526fdb073c03908b.tar.bz2 spack-839057e98db8fa4840cd3a56526fdb073c03908b.tar.xz spack-839057e98db8fa4840cd3a56526fdb073c03908b.zip |
Rename the temporary scope for bootstrap buildcache (#27231)
If we don't rename Spack will fail with:
```
ImportError: cannot bootstrap the "clingo" Python module from spec "clingo-bootstrap@spack+python %gcc target=x86_64" due to the following failures:
'spack-install' raised ValueError: Invalid config scope: 'bootstrap'. Must be one of odict_keys(['_builtin', 'defaults', 'defaults/cray', 'bootstrap/cray', 'disable_modules', 'overrides-0'])
Please run `spack -d spec zlib` for more verbose error messages
```
in case bootstrapping from binaries fails and we are
falling back to bootstrapping from sources.
-rw-r--r-- | lib/spack/spack/bootstrap.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/spack/spack/bootstrap.py b/lib/spack/spack/bootstrap.py index 97a38d20a0..52fadbf700 100644 --- a/lib/spack/spack/bootstrap.py +++ b/lib/spack/spack/bootstrap.py @@ -311,7 +311,7 @@ class _BuildcacheBootstrapper(object): @property def mirror_scope(self): return spack.config.InternalConfigScope( - 'bootstrap', {'mirrors:': {self.name: self.url}} + 'bootstrap_buildcache', {'mirrors:': {self.name: self.url}} ) def try_import(self, module, abstract_spec_str): |