Skip to content

Commit

Permalink
[regenerate_cargo_nix.sh] explicit build tool to exit early on failure
Browse files Browse the repository at this point in the history
  • Loading branch information
kolloch committed Jan 4, 2024
1 parent 5b66cd7 commit 360d2a6
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions regenerate_cargo_nix.sh
Original file line number Diff line number Diff line change
Expand Up @@ -53,13 +53,12 @@ else
echo "Skipping because of --no-cargo-build"
fi

crate2nix=$(noisily nix-build --arg release false $NIX_OPTIONS)/bin/crate2nix
noisily nix-build --arg release false $NIX_OPTIONS
crate2nix=$(nix-build --arg release false $NIX_OPTIONS)/bin/crate2nix
noisily "$crate2nix" generate -n ../nix/nixpkgs.nix \
-f ./crate2nix/Cargo.toml -o ./crate2nix/Cargo.nix || \
{ echo "Regeneration of ./Cargo.nix failed." >&2 ; exit 1; }

crate2nix=$(noisily nix-build --arg release false $NIX_OPTIONS)/bin/crate2nix

nix-instantiate tests.nix --eval --strict --json -A buildTestConfigs | \
jq -r .[].pregeneratedBuild | \
while read cargo_nix; do
Expand Down

0 comments on commit 360d2a6

Please sign in to comment.