Skip to content

Commit

Permalink
common-updater-scripts: Silence outPath check
Browse files Browse the repository at this point in the history
It is expected to fail in repos not using flakes-compat (like Nixpkgs).
  • Loading branch information
jtojnar committed Dec 31, 2021
1 parent d9dea8d commit d9ff6d9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkgs/common-updater/scripts/update-source-version
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ if [[ -z "$nixFile" ]]; then
fi

# flake-compat will return paths in the Nix store, we need to correct for that.
possiblyOutPath=$(nix-instantiate $systemArg --eval -E "with $importTree; outPath" | tr -d '"')
possiblyOutPath=$(nix-instantiate $systemArg --eval -E "with $importTree; outPath" 2>/dev/null | tr -d '"')
if [[ -n "$possiblyOutPath" ]]; then
outPathEscaped=$(echo "$possiblyOutPath" | sed 's#[$^*\\.[|]#\\&#g')
pwdEscaped=$(echo "$PWD" | sed 's#[$^*\\.[|]#\\&#g')
Expand Down

0 comments on commit d9ff6d9

Please sign in to comment.