Skip to content

Commit a37c916

Browse files
authored
Bootstrap: add _builtin config scope (#22610)
1 parent 2a4c06b commit a37c916

1 file changed

Lines changed: 5 additions & 2 deletions

File tree

lib/spack/spack/bootstrap.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -196,15 +196,18 @@ def _raise_error(executable, exe_spec):
196196

197197

198198
def _bootstrap_config_scopes():
199-
config_scopes = []
199+
tty.debug('[BOOTSTRAP CONFIG SCOPE] name=_builtin')
200+
config_scopes = [
201+
spack.config.InternalConfigScope('_builtin', spack.config.config_defaults)
202+
]
200203
for name, path in spack.config.configuration_paths:
201204
platform = spack.architecture.platform().name
202205
platform_scope = spack.config.ConfigScope(
203206
'/'.join([name, platform]), os.path.join(path, platform)
204207
)
205208
generic_scope = spack.config.ConfigScope(name, path)
206209
config_scopes.extend([generic_scope, platform_scope])
207-
msg = '[BOOSTRAP CONFIG SCOPE] name={0}, path={1}'
210+
msg = '[BOOTSTRAP CONFIG SCOPE] name={0}, path={1}'
208211
tty.debug(msg.format(generic_scope.name, generic_scope.path))
209212
tty.debug(msg.format(platform_scope.name, platform_scope.path))
210213
return config_scopes

0 commit comments

Comments
 (0)