Add install script for 'curl | bash' style installation #33
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.
@confluentinc/caas
We can also support OS-agnostic
curl some.url | bash
style installs for the CLI. It downloads the tarball to a temp directory, verifies the checksums, and then installs in./bin
by default.This works today, assuming you have
api.github.com
in your~/.netrc
since our CLI is private.(Note: change
ref=master
toref=curl-bash
until this is merged.)You can install somewhere other than
./bin
, for example in/usr/local/bin
:Once our CLI is public, then we can shorten this down to
Which of course means we can use a short link:
using something like this: https://blog.github.com/2011-11-10-git-io-github-url-shortener/
Since our cli repo is still private, I had to use a forked
godownloader
.PR to merge back upstream: goreleaser/godownloader#78.