compilers.yaml: require list of strings for modules (#47197)

This commit is contained in:
Harmen Stoppels 2024-10-24 21:28:38 +02:00 committed by GitHub
parent b063765c2e
commit 5ac2b8a178
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 5 additions and 2 deletions

View File

@ -275,7 +275,7 @@ def __init__(
operating_system,
target,
paths,
modules=None,
modules: Optional[List[str]] = None,
alias=None,
environment=None,
extra_rpaths=None,

View File

@ -61,7 +61,10 @@
"target": {"type": "string"},
"alias": {"anyOf": [{"type": "string"}, {"type": "null"}]},
"modules": {
"anyOf": [{"type": "string"}, {"type": "null"}, {"type": "array"}]
"anyOf": [
{"type": "null"},
{"type": "array", "items": {"type": "string"}},
]
},
"implicit_rpaths": implicit_rpaths,
"environment": spack.schema.environment.definition,