mirror of
https://github.com/tailscale/tailscale.git
synced 2024-11-25 19:15:34 +00:00
02a2dcfc86
Also removes the toolchain builds from flake.nix. For now the flake build uses upstream Go 1.20, a followup change will switch it back to our custom toolchain. Updates tailscale/corp#9005 Signed-off-by: David Anderson <danderson@tailscale.com>
18 lines
515 B
Bash
Executable File
18 lines
515 B
Bash
Executable File
#!/bin/sh
|
|
# Retrieve the latest Go toolchain.
|
|
#
|
|
set -eu
|
|
cd "$(dirname "$0")"
|
|
|
|
read -r go_branch <go.toolchain.branch
|
|
upstream=$(git ls-remote https://github.com/tailscale/go "$go_branch" | awk '{print $1}')
|
|
current=$(cat go.toolchain.rev)
|
|
if [ "$upstream" != "$current" ]; then
|
|
echo "$upstream" >go.toolchain.rev
|
|
./update-flake.sh
|
|
fi
|
|
|
|
if [ -n "$(git diff-index --name-only HEAD -- go.toolchain.rev go.mod.sri)" ]; then
|
|
echo "pull-toolchain.sh: changes imported. Use git commit to make them permanent." >&2
|
|
fi
|