mirror of
https://github.com/tailscale/tailscale.git
synced 2025-04-22 08:51:41 +00:00
flake.nix: use vendorHash instead of vendorSha256
vendorSha256 is getting retired, and throws warning in builds. Updates #cleanup Signed-off-by: David Anderson <danderson@tailscale.com>
This commit is contained in:
parent
6b395f6385
commit
18e7520c63
@ -51,12 +51,12 @@
|
|||||||
# flake at".
|
# flake at".
|
||||||
#
|
#
|
||||||
# This is currently unfortunately brittle, because we have to
|
# This is currently unfortunately brittle, because we have to
|
||||||
# specify vendorSha256, and that sha changes any time we alter
|
# specify vendorHash, and that sha changes any time we alter
|
||||||
# go.mod. We don't want to force a nix dependency on everyone
|
# go.mod. We don't want to force a nix dependency on everyone
|
||||||
# hacking on Tailscale, so this flake is likely to have broken
|
# hacking on Tailscale, so this flake is likely to have broken
|
||||||
# builds periodically until someone comes through and manually
|
# builds periodically until someone comes through and manually
|
||||||
# fixes them up. I sure wish there was a way to express "please
|
# fixes them up. I sure wish there was a way to express "please
|
||||||
# just trust the local go.mod, vendorSha256 has no benefit here",
|
# just trust the local go.mod, vendorHash has no benefit here",
|
||||||
# but alas.
|
# but alas.
|
||||||
#
|
#
|
||||||
# So really, this flake is for tailscale devs to dogfood with, if
|
# So really, this flake is for tailscale devs to dogfood with, if
|
||||||
@ -66,7 +66,7 @@
|
|||||||
name = "tailscale";
|
name = "tailscale";
|
||||||
|
|
||||||
src = ./.;
|
src = ./.;
|
||||||
vendorSha256 = pkgs.lib.fileContents ./go.mod.sri;
|
vendorHash = pkgs.lib.fileContents ./go.mod.sri;
|
||||||
nativeBuildInputs = pkgs.lib.optionals pkgs.stdenv.isLinux [ pkgs.makeWrapper ];
|
nativeBuildInputs = pkgs.lib.optionals pkgs.stdenv.isLinux [ pkgs.makeWrapper ];
|
||||||
ldflags = ["-X tailscale.com/version.gitCommitStamp=${tailscaleRev}"];
|
ldflags = ["-X tailscale.com/version.gitCommitStamp=${tailscaleRev}"];
|
||||||
CGO_ENABLED = 0;
|
CGO_ENABLED = 0;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user