Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

self-update #324

Open
aricart opened this issue Jan 13, 2022 · 2 comments
Open

self-update #324

aricart opened this issue Jan 13, 2022 · 2 comments

Comments

@aricart
Copy link
Member

aricart commented Jan 13, 2022

Currently there's no support for self-updating the binary, thus requiring tools like brew etc to provide this functionality.

@ripienaar
Copy link
Collaborator

ripienaar commented Jan 21, 2022

It's possible but I think there are larger more general problems that we need to fix first - things like where do we place nightly binaries so self update mechanisms can opt into a release or a nightly channel for example.

So I dont want to jump into this we need a strategy that will work for all the tools and more generally provide nightly builds etc.

Alternatively - and perhaps preffered - the install.sh (which this repo dont have) can handle all that so a update is to curl|bash again if thats your thing. This is easier to maintain and easier to fix - a compiled in self updating mechanism that has a bug leaves all those users stranded. A external script with a bug can be fixed for all.

@dschulz
Copy link

dschulz commented May 14, 2022

I know this is not exactly self-updating, but managing locally installed versions of nats cli is too darn easy if the Go tooling is installed, which is also easy and convenient to have anyway

$ go install  github.com/nats-io/natscli/nats@main
go: downloading github.com/nats-io/natscli v0.0.33-0.20220513120614-5449781755c0
$ nats --version
v0.0.33-0.20220513120614-5449781755c0
$ go install  github.com/nats-io/natscli/nats@latest
$ nats --version
v0.0.32
$ which nats
~/go/bin/nats

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants