github.com/anthropics/anthropic-sdk-go@v1.70.1/scripts/bootstrap (about) 1 #!/usr/bin/env bash 2 3 set -e 4 5 cd "$(dirname "$0")/.." 6 7 if [ -f "Brewfile" ] && [ "$(uname -s)" = "Darwin" ] && [ "${SKIP_BREW:-}" != "1" ] && [ -t 0 ]; then 8 brew bundle check >/dev/null 2>&1 || { 9 echo -n "==> Install Homebrew dependencies? (y/N): " 10 read -r response 11 case "$response" in 12 [yY][eE][sS]|[yY]) 13 brew bundle 14 ;; 15 *) 16 ;; 17 esac 18 echo 19 } 20 fi 21 22 echo "==> Installing Go dependencies…" 23 24 go mod tidy -e