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.
This commit is contained in:
Massimiliano Culpo 2021-11-05 00:17:00 +01:00 committed by GitHub
parent f2a42ac4c6
commit 839057e98d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -311,7 +311,7 @@ def _install_and_test(
@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):