fix(updater): only install Go for dep gen when no asdf/mise
This commit is contained in:
parent
5a9081fcf9
commit
8912c12006
1 changed files with 8 additions and 1 deletions
|
@ -18,7 +18,14 @@ set -euo pipefail
|
||||||
MODE="${1:-"slim"}"
|
MODE="${1:-"slim"}"
|
||||||
|
|
||||||
GO_VERSION=$(grep "^go" go.mod | awk '{ print $2 }' | awk -F '.' '{ print $1"."$2}')
|
GO_VERSION=$(grep "^go" go.mod | awk '{ print $2 }' | awk -F '.' '{ print $1"."$2}')
|
||||||
mise use -g golang@"${GO_VERSION}"
|
|
||||||
|
# Only use mise to set the Go version if we don't already have mise/asdf
|
||||||
|
# support.
|
||||||
|
if [[ ! -e ".tool-versions" ]] && [[ ! -e ".mise.toml" ]]; then
|
||||||
|
mise use -g golang@"${GO_VERSION}"
|
||||||
|
else
|
||||||
|
mise install golang
|
||||||
|
fi
|
||||||
|
|
||||||
# Create the dependency tar.
|
# Create the dependency tar.
|
||||||
echo "Creating dependency tarball"
|
echo "Creating dependency tarball"
|
||||||
|
|
Loading…
Add table
Reference in a new issue