From 839057e98db8fa4840cd3a56526fdb073c03908b Mon Sep 17 00:00:00 2001 From: Massimiliano Culpo Date: Fri, 5 Nov 2021 00:17:00 +0100 Subject: 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. --- lib/spack/spack/bootstrap.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib') 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): -- cgit v1.2.3-70-g09d2