-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
32720bc
commit c9f3544
Showing
3 changed files
with
16 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -23,7 +23,10 @@ THIS_DIR=$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd) | |
|
||
cd "$THIS_DIR" | ||
|
||
[[ -n "$(command -v gimme)" ]] && eval "$(gimme stable)" | ||
if [[ -n "$(command -v gimme)" ]]; then | ||
GO_VERSION=${GO_VERSION:-stable} # Use the provided GO_VERSION or default to 'stable' | ||
eval "$(gimme $GO_VERSION)" | ||
fi | ||
echo go version | ||
GOBIN=$THIS_DIR/functions go install ./... | ||
|
||
|
@@ -60,14 +63,15 @@ esac | |
|
||
# grab mdbook | ||
# we hardcode linux/amd64 since rust uses a different naming scheme and it's a pain to tran | ||
echo "downloading mdBook-v0.4.21-${arch}-${target}.${ext}" | ||
echo "downloading mdBook-v0.4.34-${arch}-${target}.${ext}" | ||
set -x | ||
curl -sL -o /tmp/mdbook.${ext} https://github.com/rust-lang-nursery/mdBook/releases/download/v0.4.2/mdBook-v0.4.2-${arch}-${target}.${ext} | ||
curl -sL -o /tmp/mdbook.${ext} https://github.com/rust-lang/mdBook/releases/download/v0.4.34/mdBook-v0.4.34-${arch}-${target}.${ext} | ||
${cmd} /tmp/mdbook.${ext} | ||
chmod +x /tmp/mdbook | ||
|
||
echo "grabbing the latest released controller-gen" | ||
go install sigs.k8s.io/controller-tools/cmd/[email protected] | ||
go version | ||
go install sigs.k8s.io/controller-tools/cmd/[email protected] | ||
|
||
# make sure we add the go bin directory to our path | ||
gobin=$(go env GOBIN) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters