Skip to content

Commit

Permalink
Fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
bkchr committed Dec 18, 2023
1 parent c793518 commit 2846924
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 210 deletions.
6 changes: 5 additions & 1 deletion .github/workflows/checks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,12 +33,16 @@ 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 | grep "hash mismatch" -A2
# 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
- uses: stefanzweifel/git-auto-commit-action@v5
if: always()
with:
add_options: '-u'
commit_message: Fix nix hash
Loading

0 comments on commit 2846924

Please sign in to comment.