Skip to content

Commit

Permalink
fix(hooks): trying to fix bug in GH Actions
Browse files Browse the repository at this point in the history
```
:dialyzer.run error: File not found: /nix/store/v4616fdvcf89xwm0rkw1fgxn040yda8v-erlang-26.2.5.1/lib/erlang/lib/dialyzer-5.1.3/ebin/erl_bif_types.beam
```
  • Loading branch information
ProducerMatt committed Aug 29, 2024
1 parent 6a2858f commit 5d6aaa3
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/elixir.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,13 +42,15 @@ jobs:
id: deps-cache
uses: actions/cache@v4
with:
# would be good to cache priv/plts but something isn't being cached right,
# and plt ends up expecting files managed by Nix which aren't there.
# example: :dialyzer.run error: File not found: /nix/store/*-erlang-26.2.5.1/lib/erlang/lib/dialyzer-5.1.3/ebin/erl_bif_types.beam
path: |
deps
_build
priv/plts
.nix-mix
.nix-hex
key: ${{ runner.os }}-mix-${{ hashFiles(format('{0}{1}', github.workspace, '/flake.*')) }}-${{ hashFiles(format('{0}{1}', github.workspace, '/mix.*')) }}
key: ${{ runner.os }}-mix-${{ hashFiles(format('{0}{1}', github.workspace, '/flake.*')) }}-${{ hashFiles(format('{0}{1}', github.workspace, '**/mix.*')) }}
restore-keys: |
${{ runner.os }}-mix-${{ hashFiles(format('{0}{1}', github.workspace, '/flake.*')) }}
${{ runner.os }}-mix-
Expand Down
2 changes: 2 additions & 0 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,8 @@
dialyzer = {
enable = true;
package = ex;
pass_filenames = false;
require_serial = true;
};
custom-mix-test = {
enable = true;
Expand Down

0 comments on commit 5d6aaa3

Please sign in to comment.