Skip to content

Commit

Permalink
Replace deprecated Nix vendorSha256 call with vendorHash (#110)
Browse files Browse the repository at this point in the history
Signed-off-by: Patka <patka@patka.dev>
  • Loading branch information
patka-123 committed Jan 26, 2024
1 parent b75983b commit d9de913
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
version = golinkVersion;
src = pkgs.nix-gitignore.gitignoreSource [ ] ./.;

vendorSha256 = "sha256-R/o3csZC/M9nm0k5STL7AhbG5J4LtdxqKaVjM/9ggW8="; # SHA based on vendoring go.mod
vendorHash = "sha256-R/o3csZC/M9nm0k5STL7AhbG5J4LtdxqKaVjM/9ggW8="; # SHA based on vendoring go.mod
};
};
}
Expand Down
2 changes: 1 addition & 1 deletion update-flake.sh
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,4 @@ go mod vendor -o "$OUT"
SHA=$(go run tailscale.com/cmd/nardump --sri "$OUT")
rm -rf "$OUT"

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

0 comments on commit d9de913

Please sign in to comment.