Update download_cli.sh to support arbitrary Goose versions #3060
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Add a
GOOSE_VERSIONenvironment variable to thedownload_cli.shinstall script to support installing arbitrary versions of GooseThis is a convenience to allow for integration testing of specific Goose versions to validate backwards compatibility. We verify the input version string is valid semver and prefix with
vif not already presentGOOSE_VERSIONis used with/without quotes, and thevprefix is auto added:🐚 ~/Development/goose-fork wpfleger/support-install-versions GOOSE_VERSION=1.0.27 bash download_cli.sh Downloading v1.0.27 release: goose-aarch64-apple-darwin.tar.bz2... Extracting goose-aarch64-apple-darwin.tar.bz2 to temporary directory...🐚 ~/Development/goose-fork wpfleger/support-install-versions GOOSE_VERSION=v1.0.27 bash download_cli.sh Downloading v1.0.27 release: goose-aarch64-apple-darwin.tar.bz2... Extracting goose-aarch64-apple-darwin.tar.bz2 to temporary directory... Moving goose to /Users/wpfleger/.local/bin/gooseOmitting
GOOSE_VERSIONstill defaults to the latest stable release:🐚 ~/Development/goose-fork wpfleger/support-install-versions bash download_cli.sh Downloading stable release: goose-aarch64-apple-darwin.tar.bz2... Extracting goose-aarch64-apple-darwin.tar.bz2 to temporary directory...And
CANARYtakes precedence:🐚 ~/Development/goose-fork wpfleger/support-install-versions CANARY=true bash download_cli.sh Downloading canary release: goose-aarch64-apple-darwin.tar.bz2... Extracting goose-aarch64-apple-darwin.tar.bz2 to temporary directory...