after building on WSL2 the following difference in SemVer appears…
Can someone please give an advice?
Go version is “go1.13.3”, ignoring -next /usr/local/go/goroot/api/next.txt
ALL TESTS PASSED
Installed Go for linux/amd64 in /usr/local/go/goroot
Installed commands in /usr/local/go/goroot/bin
*** You need to add /usr/local/go/goroot/bin to your PATH.
mmaedel@delle:/usr/local/go/goroot/src$ export PATH=$PATH:/usr/local/go/goroot/bin
mmaedel@delle:/usr/local/go/goroot/src$ go version
go version go1.10.3 gccgo (Ubuntu 8.3.0-6ubuntu1~18.04.1) 8.3.0 linux/amd64
You should check which Go binary is executed when you do “go version”. Use the command “which go” to do so. It will return the path to the go binary executed.
You might have go installed as an apt package. You should then remove it with “sudo apt-get remove go”. Unless you installed go with snap.
mmaedel@delle:~/go$ go version
go version go1.13.3 linux/amd64
the old version was in /bin + I forgot to set the path to new bin in .profile
All bit confusing with wsl but its clearing thanks to your quick help.
Again thank you and
For similar problems refer to
Go: unknown subcommand "mod" solution.
This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.