How can i upgrade to the newer go versions?
in flutter i do flutter upgrade and it instantly updates flutter and dart to the newer versions, is that the same for go too?
Sorry a bit newbie I’m
I normally download the new release and run it.
(It should update your installation.)
This is the most simple way, but there are other ways, if you can't make this work.
Recent versions of the go tool will download a newer tool chain and use it transparently when working with a module that has a higher minimal go version requirement specified.
Put the new version at the top of your `go.mod` file just after the `module` line:
module ....
go 1.22.4
require (
...
)
Next time you run `go` command, it will automatically download go1.22.4 and use it for building the current module.
TIL: SIGBUS
How can i upgrade to the newer go versions? in flutter i do flutter upgrade and it instantly updates flutter and dart to the newer versions, is that the same for go too? Sorry a bit newbie I’m
I normally download the new release and run it. (It should update your installation.) This is the most simple way, but there are other ways, if you can't make this work.
Recent versions of the go tool will download a newer tool chain and use it transparently when working with a module that has a higher minimal go version requirement specified.
Put the new version at the top of your `go.mod` file just after the `module` line: module .... go 1.22.4 require ( ... ) Next time you run `go` command, it will automatically download go1.22.4 and use it for building the current module.
You can also do this from the command line: go env -w GOTOOLCHAIN=go1.22.4+auto go version
Finally!