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

Rewrite of request for jq 1.16

parent e1507c03
No related branches found
No related tags found
No related merge requests found
Pipeline #196816 failed
......@@ -83,19 +83,15 @@ 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
echo "Env: $environment"
target=$(jq -Mrc --arg env "${environment}" '
.environments.[$env].target
' ${STACK_CONFIG})
require=$(jq -Mrc --arg env "${environment}" '
.environments.[$env]
require=$(jq -Mrc --arg environment "${environment}" '
.environments
| to_entries
| map(select(.key==env.environment))
| .[].value
| if has("require") then
.require
| map(" - spec: \(.spec)\n when: \(.when)")
......
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