Skip to content
Snippets Groups Projects
Commit 729ce793 authored by Nicolas Richart's avatar Nicolas Richart
Browse files

-a uses excape characters

parent 4b22f443
No related branches found
No related tags found
No related merge requests found
Pipeline #179926 failed
......@@ -114,7 +114,7 @@ spack:install_compilers:
- .spack_cache
- .parallel_job
script:
- COMPILER_LIST_SPECS=$(jq -ra '.stack | .core_compiler as $core | .compilers | map("\(.spec)@\(.version) %\($core)")[]' config.json)
- COMPILER_LIST_SPECS=$(jq -Mr '.stack | .core_compiler as $core | .compilers | map("\(.spec)@\(.version) %\($core)")[]' config.json)
- echo "Compilers to install \n${COMPILER_LIST_SPECS}"
- spack/bin/spack compiler find --scope system /usr
......@@ -141,7 +141,7 @@ spack:install_compilers:
--show-log-on-error
${COMPILER_LIST_SPECS}
- hashes=$(jq -ra '.spec.nodes | map("/\(.hash)") | join(" ")' compilers_spec.json)
- hashes=$(jq -Mr '.spec.nodes | map("/\(.hash)") | join(" ")' compilers_spec.json)
- spack/bin/spack buildcache create
--update-index
......@@ -149,7 +149,7 @@ spack:install_compilers:
/buildcache ${hashes}
- |
echo 'definitions: [ compilers: ' $(jq -rac '.stack | .core_compiler as $core | .compilers | map("\(.spec)@\(.version) %\($core)")' config.json) ']' > compiler_definitions.yaml
echo 'definitions: [ compilers: ' $(jq -Mrc '.stack | .core_compiler as $core | .compilers | map("\(.spec)@\(.version) %\($core)")' config.json) ']' > compiler_definitions.yaml
cat compiler_definitions.yaml
- |
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment