Skip to content
This repository was archived by the owner on Dec 27, 2025. It is now read-only.

Commit 73fd886

Browse files
committed
chore: automate Nix hash update when lock file changes
Add `update-nix-hash` task and chain it to `update-lock` so that Nix flake hashes stay synchronized with Deno lock file changes. This prevents divergence between Deno and Nix dependency versions.
1 parent 316068f commit 73fd886

2 files changed

Lines changed: 3 additions & 1 deletion

File tree

.github/workflows/test.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ jobs:
1818
- uses: denoland/setup-deno@v2
1919
with:
2020
deno-version: ${{ env.DENO_VERSION }}
21+
- uses: nixbuild/nix-quick-install-action@v34
2122
- run: deno fmt --check
2223
- run: deno lint
2324
- run: deno task check

deno.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,8 @@
2727
"coverage": "deno coverage .coverage --include='src/'",
2828
"verify": "deno fmt && deno lint && deno task check && deno task test",
2929
"probitas": "deno run -A --unstable-kv --lock ./deno.lock ./mod.ts",
30-
"update-lock": "rm deno.lock && deno cache -r mod.ts jsr:@probitas/probitas jsr:@probitas/probitas@^0",
30+
"update-nix-hash": "nix run .#probitas.updateDepsHash",
31+
"update-lock": "rm deno.lock && deno cache -r mod.ts jsr:@probitas/probitas jsr:@probitas/probitas@^0 && deno task update-nix-hash",
3132
"update-version": "deno run -A .scripts/update_version.ts"
3233
},
3334
"imports": {

0 commit comments

Comments
 (0)