Skip to content

Commit d9de913

Browse files
authored
Replace deprecated Nix vendorSha256 call with vendorHash (#110)
Signed-off-by: Patka <[email protected]>
1 parent b75983b commit d9de913

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

flake.nix

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
version = golinkVersion;
3030
src = pkgs.nix-gitignore.gitignoreSource [ ] ./.;
3131

32-
vendorSha256 = "sha256-R/o3csZC/M9nm0k5STL7AhbG5J4LtdxqKaVjM/9ggW8="; # SHA based on vendoring go.mod
32+
vendorHash = "sha256-R/o3csZC/M9nm0k5STL7AhbG5J4LtdxqKaVjM/9ggW8="; # SHA based on vendoring go.mod
3333
};
3434
};
3535
}

update-flake.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,4 +13,4 @@ go mod vendor -o "$OUT"
1313
SHA=$(go run tailscale.com/cmd/nardump --sri "$OUT")
1414
rm -rf "$OUT"
1515

16-
perl -pi -e "s,vendorSha256 = \".*\"; # SHA based on vendoring go.mod,vendorSha256 = \"$SHA\"; # SHA based on vendoring go.mod," flake.nix
16+
perl -pi -e "s,vendorHash = \".*\"; # SHA based on vendoring go.mod,vendorHash = \"$SHA\"; # SHA based on vendoring go.mod," flake.nix

0 commit comments

Comments
 (0)