Skip to content

Commit e078e3d

Browse files
authored
Merge pull request #6184 from IntersectMBO/bench-fix
wb | fix nomadcloud backend installables
2 parents 605d60b + 83e0225 commit e078e3d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

nix/workbench/backend/nomad.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -272,7 +272,7 @@ backend_nomad() {
272272
else
273273
local gitrev=${1:?$usage}; shift
274274
# "${flakeReference}/${commit}#${flakeOutput}"
275-
installables_array=$(jq ".containerPkgs | map(.flakeReference + \"/${gitrev}#\"+ .flakeOutput)" "${dir}"/container-specs.json)
275+
installables_array=$(jq --argjson GITREV "\"${gitrev}\"" '.containerPkgs | map( .["flake-reference"] + "/" + (.commit // $GITREV) + "#" + .["flake-output"] )' "${dir}"/container-specs.json)
276276
fi
277277
# nix_installables
278278
local groups_array=$(jq -r ".[\"job\"][\"${nomad_job_name}\"][\"group\"] | keys | join (\" \")" "${dir}"/nomad/nomad-job.json)

0 commit comments

Comments
 (0)