mirror of
https://github.com/tailscale/tailscale.git
synced 2025-08-13 22:47:30 +00:00
.github/workflows: add workflow to update go.mod Nix SRI hash
So that I just get a quick PR to approve and merge instead of periodically discovering that the SRI hash has bitrotted. Signed-off-by: David Anderson <danderson@tailscale.com>
This commit is contained in:

committed by
Dave Anderson

parent
f9667e4946
commit
f145c2b65b
@@ -8,8 +8,8 @@ REV=$(cat go.toolchain.rev)
|
||||
OUT=$(mktemp -d -t nar-hash-XXXXXX)
|
||||
rm -rf $OUT
|
||||
|
||||
go mod vendor -o $OUT
|
||||
go run tailscale.com/cmd/nardump --sri $OUT >go.mod.sri
|
||||
./tool/go mod vendor -o $OUT
|
||||
./tool/go run tailscale.com/cmd/nardump --sri $OUT >go.mod.sri
|
||||
rm -rf $OUT
|
||||
|
||||
# nix-direnv only watches the top-level nix file for changes. As a
|
||||
|
Reference in New Issue
Block a user