Skip to content

Commit

Permalink
chore: use asdf to install golang only if it's unavailable
Browse files Browse the repository at this point in the history
Signed-off-by: bestmike007 <i@bestmike007.com>
  • Loading branch information
bestmike007 committed Oct 13, 2023
1 parent 2166387 commit df47e09
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 0 additions & 1 deletion .tool-versions
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
golang 1.21.3
protoc 24.4
yq 4.35.2
grpcurl 1.8.8
2 changes: 2 additions & 0 deletions scripts/bootstrap.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ if [ -x "$(command -v asdf)" ]; then
if ! [ -x "$(command -v go)" ]; then
if ! asdf plugin-list | grep -e '^golang$' &> /dev/null; then
asdf plugin add golang https://github.com/asdf-community/asdf-golang.git
asdf install golang 1.21.3
asdf global golang 1.21.3
fi
fi
if ! asdf plugin-list | grep -e '^yq$' &> /dev/null; then
Expand Down

0 comments on commit df47e09

Please sign in to comment.