You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
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
Currently there's no support for self-updating the binary, thus requiring tools like brew etc to provide this functionality.
The text was updated successfully, but these errors were encountered: