There was an error while loading. Please reload this page.
1 parent 93d155a commit dd88f0dCopy full SHA for dd88f0d
1 file changed
.github/workflows/nix-changes.yml
@@ -112,7 +112,8 @@ jobs:
112
- name: Lint Nix files
113
run: |
114
NIX_LINTER=$(nix-instantiate --eval --raw -E '(import ./shell.nix {}).NIX_LINTER')
115
- nix-store --realise "${NIX_LINTER%/bin/*}"
+ # Attempt to get it from cache, and fallback to building `devTools.nix` otherwise.
116
+ nix-store --realise "${NIX_LINTER%/bin/*}" || nix-build -I nixpkgs=tools/nix/pkgs.nix ./tools/nix/devTools.nix --no-out-link
117
"$NIX_LINTER" --quiet --ci && EXIT_CODE="$?" || EXIT_CODE="$?"
118
if [ "$EXIT_CODE" != "0" ]
119
then
0 commit comments