Build version difference

Hello

after building on WSL2 the following difference in SemVer appears…

Can someone please give an advice?

see chronology:

API check

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
mmaedel@delle:/usr/local/go/goroot/src$

1 Like

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.

2 Likes

:grin:

mmaedel@delle:~/go$ go version
go version go1.13.3 linux/amd64

it worked!

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

Regards

Matthias

1 Like

For similar problems refer to

Go: unknown subcommand "mod" solution.

Thank You

Christophe

1 Like

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.