mirror of
https://github.com/actions/runner-images.git
synced 2025-12-12 12:06:59 +00:00
17 lines
607 B
Bash
17 lines
607 B
Bash
#!/bin/bash -e -o pipefail
|
|
################################################################################
|
|
## File: install-golang.sh
|
|
## Desc: Install Go
|
|
################################################################################
|
|
|
|
source ~/utils/utils.sh
|
|
|
|
DEFAULT_GO_VERSION=$(get_toolset_value '.go.default')
|
|
echo "Installing Go..."
|
|
brew_smart_install "go@${DEFAULT_GO_VERSION}"
|
|
|
|
# Create symlinks to preserve backward compatibility. Symlinks are not created when non-latest go is being installed
|
|
ln -sf $(brew --prefix go@${DEFAULT_GO_VERSION})/bin/* /usr/local/bin/
|
|
|
|
invoke_tests "Common" "Go"
|