1###############################################################################
2# When I'm in the Tailscale repos, I should use ./tool/go instead of
3# the vanilla version of Go.
5# This function will remind me to use ./tool/go instead of vanilla Go.
6###############################################################################
8function go --description 'Remind me to use ./tool/go in Tailscale repos'
9 set ROOT $(git rev-parse --show-toplevel 2>/dev/null)
11 if test -n "$ROOT"; and test -f "$ROOT/tool/go"
13 echo "You should use ./tool/go instead!" >&2