spack/lib/spack/spack
Massimiliano Culpo 10f309273a
Do not error when trying to convert corrupted compiler entries (#49759)
fixes #49717

If no compiler is listed in the 'packages' section of
the configuration, Spack will currently try to:
1. Look for a legacy compilers.yaml to convert
2. Look for compilers in PATH

in that order. If an entry in compilers.yaml is
corrupted, that should not result in an obscure
error.

Instead, it should just be skipped.

Signed-off-by: Massimiliano Culpo <massimiliano.culpo@gmail.com>
2025-03-28 13:14:12 -06:00
..
bootstrap Turn compilers into nodes (#45189) 2025-03-25 22:32:49 -06:00
build_systems Remove "classic" Intel packages (#45188) 2025-03-27 10:13:33 +01:00
ci Turn compilers into nodes (#45189) 2025-03-25 22:32:49 -06:00
cmd Remove "classic" Intel packages (#45188) 2025-03-27 10:13:33 +01:00
compilers Do not error when trying to convert corrupted compiler entries (#49759) 2025-03-28 13:14:12 -06:00
container style: fix not in and is not (#48831) 2025-02-03 00:49:38 -08:00
detection Turn compilers into nodes (#45189) 2025-03-25 22:32:49 -06:00
environment Turn compilers into nodes (#45189) 2025-03-25 22:32:49 -06:00
hooks spack verify libraries: verify dependencies of installed packages can be resolved (#49124) 2025-02-24 11:28:06 +01:00
mirrors style: fix not in and is not (#48831) 2025-02-03 00:49:38 -08:00
modules Turn compilers into nodes (#45189) 2025-03-25 22:32:49 -06:00
oci oci/opener.py: respect system proxy settings (#48783) 2025-02-01 09:26:55 +01:00
operating_systems spack_yaml.py / spec.py: use dict instead of OrderedDict (#48616) 2025-01-20 17:33:44 +09:00
platforms Deprecate frontend/backend os/target (#47756) 2025-01-29 13:22:51 +01:00
reporters Extracted changes from 45189 (#49137) 2025-02-21 10:58:00 +01:00
schema Turn compilers into nodes (#45189) 2025-03-25 22:32:49 -06:00
solver bugfix: concretization shouldn't require concrete packages to be known (#49706) 2025-03-26 23:58:12 +00:00
test Do not error when trying to convert corrupted compiler entries (#49759) 2025-03-28 13:14:12 -06:00
util Fix import urllib.request (#49699) 2025-03-28 10:15:33 +01:00
version Fix installing rust@nightly (#49098) 2025-02-21 09:53:46 -08:00
__init__.py Define Package API version (#49274) 2025-03-05 15:42:48 +01:00
aliases.py Turn compilers into nodes (#45189) 2025-03-25 22:32:49 -06:00
audit.py Spec.is_virtual -> spack.repo.PATH.is_virtual (#48986) 2025-02-12 16:57:27 +01:00
binary_distribution.py Turn compilers into nodes (#45189) 2025-03-25 22:32:49 -06:00
build_environment.py Turn compilers into nodes (#45189) 2025-03-25 22:32:49 -06:00
builder.py Remove years from license headers (#48352) 2025-01-02 15:40:28 +01:00
caches.py Remove years from license headers (#48352) 2025-01-02 15:40:28 +01:00
concretize.py Turn compilers into nodes (#45189) 2025-03-25 22:32:49 -06:00
config.py bugfix: Scopes shouldn't dynamically maintain include lists (#49494) 2025-03-15 13:21:36 -07:00
context.py Remove years from license headers (#48352) 2025-01-02 15:40:28 +01:00
cray_manifest.py Turn compilers into nodes (#45189) 2025-03-25 22:32:49 -06:00
database.py Turn compilers into nodes (#45189) 2025-03-25 22:32:49 -06:00
dependency.py Remove years from license headers (#48352) 2025-01-02 15:40:28 +01:00
deptypes.py Remove years from license headers (#48352) 2025-01-02 15:40:28 +01:00
directives_meta.py Remove years from license headers (#48352) 2025-01-02 15:40:28 +01:00
directives.py variant.py: reserved names is a set (#49762) 2025-03-28 08:17:04 -07:00
directory_layout.py Turn compilers into nodes (#45189) 2025-03-25 22:32:49 -06:00
enums.py Assign priorities to configuration scopes (take 2) (#49187) 2025-02-26 10:52:19 -08:00
error.py Add spack API warning with file/line (#48416) 2025-01-06 03:43:04 -07:00
extensions.py Move from python2 compliant IOError and EnvironmentError to python3-only OSError (#48764) 2025-01-30 09:32:57 -08:00
fetch_strategy.py import os.path -> os (#48709) 2025-01-28 09:45:43 +01:00
filesystem_view.py Spec to string: show %compiler at the end (#49439) 2025-03-12 18:15:34 +01:00
graph.py Spec to string: show %compiler at the end (#49439) 2025-03-12 18:15:34 +01:00
hash_types.py spec.py: include test deps in dag hash, remove process_hash (take two) (#49505) 2025-03-17 08:47:09 +01:00
install_test.py Support independent includes with conditional, optional, and remote entries (#48784) 2025-03-09 19:33:44 -07:00
installer.py log.py: remove setenv calls (#48933) 2025-02-10 09:53:36 +01:00
main.py Assign priorities to configuration scopes (take 2) (#49187) 2025-02-26 10:52:19 -08:00
mixins.py Turn compilers into nodes (#45189) 2025-03-25 22:32:49 -06:00
multimethod.py Remove years from license headers (#48352) 2025-01-02 15:40:28 +01:00
package_base.py Turn compilers into nodes (#45189) 2025-03-25 22:32:49 -06:00
package_completions.py Remove years from license headers (#48352) 2025-01-02 15:40:28 +01:00
package_prefs.py Remove years from license headers (#48352) 2025-01-02 15:40:28 +01:00
package_test.py Remove years from license headers (#48352) 2025-01-02 15:40:28 +01:00
package.py update pyproject.toml for ruff format (#48823) 2025-02-03 20:56:05 -08:00
patch.py Spec.ensure_external_path_if_external, Spec.inject_patches_variant -> spack.solver.asp (#48988) 2025-02-24 08:36:23 +01:00
paths.py Turn compilers into nodes (#45189) 2025-03-25 22:32:49 -06:00
phase_callbacks.py Remove years from license headers (#48352) 2025-01-02 15:40:28 +01:00
projections.py Remove years from license headers (#48352) 2025-01-02 15:40:28 +01:00
provider_index.py Turn compilers into nodes (#45189) 2025-03-25 22:32:49 -06:00
relocate_text.py relocate.py, binary_distribution.py: cleanup (#48651) 2025-01-21 15:45:08 +01:00
relocate.py apply black v25.1.0 (#49076) 2025-02-17 11:42:12 +01:00
repo.py Turn compilers into nodes (#45189) 2025-03-25 22:32:49 -06:00
report.py Turn compilers into nodes (#45189) 2025-03-25 22:32:49 -06:00
resource.py Remove years from license headers (#48352) 2025-01-02 15:40:28 +01:00
rewiring.py rewiring.py: eliminate code duplication from bindist (#48723) 2025-01-27 10:09:04 +01:00
spec_list.py Remove years from license headers (#48352) 2025-01-02 15:40:28 +01:00
spec_parser.py Turn compilers into nodes (#45189) 2025-03-25 22:32:49 -06:00
spec.py variant.py: reserved names is a set (#49762) 2025-03-28 08:17:04 -07:00
stage.py Remove years from license headers (#48352) 2025-01-02 15:40:28 +01:00
store.py Remove years from license headers (#48352) 2025-01-02 15:40:28 +01:00
subprocess_context.py Remove years from license headers (#48352) 2025-01-02 15:40:28 +01:00
tag.py Remove years from license headers (#48352) 2025-01-02 15:40:28 +01:00
tengine.py Remove years from license headers (#48352) 2025-01-02 15:40:28 +01:00
tokenize.py Remove unused Tokenizer.full_match (#48650) 2025-01-24 15:53:42 +01:00
traverse.py traverse: use deque and popleft (#48353) 2025-01-14 00:09:57 -08:00
url.py Remove years from license headers (#48352) 2025-01-02 15:40:28 +01:00
user_environment.py Add typehints for directory_layout / Spec.prefix (#48652) 2025-02-24 09:47:07 +00:00
variant.py variant.py: reserved names is a set (#49762) 2025-03-28 08:17:04 -07:00
verify_libraries.py spack verify libraries: verify dependencies of installed packages can be resolved (#49124) 2025-02-24 11:28:06 +01:00
verify.py Remove years from license headers (#48352) 2025-01-02 15:40:28 +01:00