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

Missing part in packages

parent 9619a279
No related branches found
No related tags found
No related merge requests found
Pipeline #196571 failed
......@@ -84,6 +84,7 @@ spack/bin/spack buildcache keys \
#spack/bin/spack buildcache update-index /buildcache
curl -L https://github.com/jqlang/jq/releases/download/jq-1.7.1/jq-linux-amd64 -o /usr/bin/jq
chmod +x /usr/bin/jq
which jq
jq --version
......@@ -97,7 +98,7 @@ require=$(jq -Mrc --arg env "${environment}" '
.environments.[$env]
| if has("require") then
.require
| map(" - spec: \(.spec)\n when: \(.when)")
| map(" - spec: \(.spec)\n when: \(.when)")
| .[]
else
""
......@@ -111,5 +112,6 @@ EOF
if [ "x$require" != "x" ]
then
echo $require >> ${SPACK_SYSTEM_CONFIG_PATH}/packages_env.yaml
echo " require:" >> ${SPACK_SYSTEM_CONFIG_PATH}/packages_env.yaml
echo "${require}" >> ${SPACK_SYSTEM_CONFIG_PATH}/packages_env.yaml
fi
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