From 408522ddad8949c31a60b047f2a55cc96a4db67f Mon Sep 17 00:00:00 2001 From: Josh Bleecher Snyder Date: Mon, 10 Jan 2022 14:47:32 -0800 Subject: [PATCH] go.toolchain.rev: add update script Also go.toolchain.branch. Both migrated from the corp repo. Signed-off-by: Josh Bleecher Snyder --- go.toolchain.branch | 1 + pull-toolchain.sh | 16 ++++++++++++++++ 2 files changed, 17 insertions(+) create mode 100644 go.toolchain.branch create mode 100755 pull-toolchain.sh diff --git a/go.toolchain.branch b/go.toolchain.branch new file mode 100644 index 000000000..a575de0f2 --- /dev/null +++ b/go.toolchain.branch @@ -0,0 +1 @@ +tailscale.go1.17 diff --git a/pull-toolchain.sh b/pull-toolchain.sh new file mode 100755 index 000000000..f5a19e7d7 --- /dev/null +++ b/pull-toolchain.sh @@ -0,0 +1,16 @@ +#!/bin/sh +# Retrieve the latest Go toolchain. +# +set -eu +cd "$(dirname "$0")" + +read -r go_branch go.toolchain.rev +fi + +if [ -n "$(git diff-index --name-only HEAD -- go.toolchain.rev)" ]; then + echo "pull-toolchain.sh: changes imported. Use git commit to make them permanent." >&2 +fi