fix(helpers): use builtin nix store location indicator

This commit is contained in:
Skryta Istota 2025-11-30 11:44:23 +01:00 committed by technofab
parent 524bdf9cdc
commit d0662e3185
No known key found for this signature in database
2 changed files with 2 additions and 2 deletions

View file

@ -50,7 +50,7 @@ in rec {
filterJobVariables = shouldContain: job: filterJobVariables = shouldContain: job:
concatMapAttrs ( concatMapAttrs (
name: value: name: value:
optionalAttrs ((hasInfix "/nix/store/" value) == shouldContain) { optionalAttrs ((hasInfix builtins.storeDir value) == shouldContain) {
${name} = value; ${name} = value;
} }
) )

View file

@ -129,7 +129,7 @@
# sh # sh
'' ''
set -euo pipefail set -euo pipefail
${ntlib.helpers.path [pkgs.jq pkgs.gnugrep pkgs.coreutils]} ${ntlib.helpers.path (with pkgs; [jq gnugrep coreutils])}
echo "two keys, one json one pretty" echo "two keys, one json one pretty"
jq 'keys | length == 2' "${pipeline}" | grep -q true jq 'keys | length == 2' "${pipeline}" | grep -q true
echo "key[0] is exactly 'gitlab-ci:pipeline:test'" echo "key[0] is exactly 'gitlab-ci:pipeline:test'"