ci: run nix jobs with --fallback

cache.nixos.org intermittently serves corrupt NARs; build from source on
substitute failure instead of failing the job.
This commit is contained in:
Kristoffer Dalby
2026-06-18 14:41:38 +00:00
parent f5198841bd
commit a00de89c85
8 changed files with 15 additions and 15 deletions
+3 -3
View File
@@ -35,7 +35,7 @@ jobs:
- name: golangci-lint
if: steps.changed-files.outputs.files == 'true'
run: nix develop --command -- golangci-lint run
run: nix develop --fallback --command -- golangci-lint run
--new-from-rev=${{github.event.pull_request.base.sha}}
--output.text.path=stdout
--output.text.print-linter-name
@@ -75,7 +75,7 @@ jobs:
- name: Prettify code
if: steps.changed-files.outputs.files == 'true'
run: nix develop --command -- prettier --no-error-on-unmatched-pattern
run: nix develop --fallback --command -- prettier --no-error-on-unmatched-pattern
--ignore-unknown --check **/*.{ts,js,md,yaml,yml,sass,css,scss,html}
proto-lint:
@@ -90,4 +90,4 @@ jobs:
restore-prefixes-first-match: nix-${{ runner.os }}-${{ runner.arch }}
- name: Buf lint
run: nix develop --command -- buf lint proto
run: nix develop --fallback --command -- buf lint proto