We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 605d60b + 83e0225 commit e078e3dCopy full SHA for e078e3d
nix/workbench/backend/nomad.sh
@@ -272,7 +272,7 @@ backend_nomad() {
272
else
273
local gitrev=${1:?$usage}; shift
274
# "${flakeReference}/${commit}#${flakeOutput}"
275
- installables_array=$(jq ".containerPkgs | map(.flakeReference + \"/${gitrev}#\"+ .flakeOutput)" "${dir}"/container-specs.json)
+ installables_array=$(jq --argjson GITREV "\"${gitrev}\"" '.containerPkgs | map( .["flake-reference"] + "/" + (.commit // $GITREV) + "#" + .["flake-output"] )' "${dir}"/container-specs.json)
276
fi
277
# nix_installables
278
local groups_array=$(jq -r ".[\"job\"][\"${nomad_job_name}\"][\"group\"] | keys | join (\" \")" "${dir}"/nomad/nomad-job.json)
0 commit comments