Skip to content

Commit

Permalink
...
Browse files Browse the repository at this point in the history
  • Loading branch information
bkchr committed Dec 18, 2023
1 parent 9374c2f commit 56aafb4
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/checks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,10 +33,12 @@ jobs:
echo "If the job is failing with: \"hash mismatch in fixed-output derivation\""
echo "Copy the hash after \"got:\" and replace \"npmDepsHash\" in \"flake-module.nix\" with the hash"
nix develop --command "exit 1" 2>shell_output
cat shell_output
# Filter the hash and then replace it in `flake-module.nix`
# This needs to run before the last step that may let's the job fail
cat shell_output | grep "got:" | sed "s/[ \t]*got:[ \t]*//" > hash
sed "s@npmDepsHash = \"[^\"]*\"@npmDepsHash = \"$(cat hash)\"@" -i flake-module.nix
! cat shell_output | grep "hash mismatch" -A2
Expand Down

0 comments on commit 56aafb4

Please sign in to comment.