climate icon indicating copy to clipboard operation
climate copied to clipboard

Support self-updating?

Open avamsi opened this issue 2 years ago • 3 comments

We could probably do this automatically? But maybe not, in the interest of startup time.

avamsi avatar Sep 26 '23 17:09 avamsi

Another way to approach this would probably be a gobin "package manager" for go install ...s.

avamsi avatar Sep 26 '23 18:09 avamsi

Looks like there are some selfupdate packages available but we could probably just run go install with the module from (debug) buildinfo? Need to handle devel binaries explicitly, though.

avamsi avatar Sep 28 '23 02:09 avamsi

Maybe we could start a goroutine to check for updates and tie it back at the end (of the program)? Need to figure out a way to not do that all the time, though -- seems wasteful (unlike say, brew).

avamsi avatar Nov 13 '23 05:11 avamsi