Our great sponsors
-
update-golang
update-golang is a script to easily fetch and install new Golang releases with minimum system intrusion
-
InfluxDB
Power Real-Time Data Analytics at Scale. Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.
Ah neat. For ref: https://github.com/moovweb/gvm. Not sure how I never saw that one. I guess I just probably googled "update golang bash github" at some point a few years ago and went with it.
On my WSL2 install I was using gvm before, now I'm using https://github.com/udhos/update-golang, you can specify versions and it caches the downloads, so you can switch between versions using the script. Since it uses the 'official' install process, it works as expected most of the time (I had a couple issues with gvm, for example).
There are very interesting accepted proposals that touch on this topic: https://github.com/golang/go/issues/57001 https://github.com/golang/go/issues/56986
Feel free to look around and let me know what you think: https://github.com/teaxyz/cli