What's happened is C:\Go contains the parts of two different Go installations and is corrupt. Ideally the windows installer shouldn't do this, but here we are.
The fix should be to remove C:\Go and run the Go 1.8.1 installer again, that should fix the problem. On Tuesday, 18 April 2017 22:51:21 UTC+10, Geert Van Laethem wrote: > > Somebody got a fix on that yet. Got the same thing > > On Saturday, February 18, 2017 at 6:42:12 PM UTC+1, Vincent Rischmann > wrote: >> >> Hi, >> >> I'm on Windows, I had Go 1.7.4 installed from the MSI installer. Today I >> decided to upgrade to Go 1.8, so I downloaded the new MSI, ran it and that >> was it. >> >> However, first package I tried to install I got the following errors: >> >> G:\Gopath\src\github.com\google> go get -u -v >> github.com/vrischmann/ghclone >> github.com/vrischmann/ghclone (download) >> github.com/google/go-github (download) >> github.com/google/go-querystring (download) >> runtime/internal/atomic >> runtime >> # runtime >> C:\Go\src\runtime\utf8.go:16: surrogateMin redeclared in this block >> previous declaration at C:\Go\src\runtime\rune.go:49 >> C:\Go\src\runtime\utf8.go:17: surrogateMax redeclared in this block >> previous declaration at C:\Go\src\runtime\rune.go:50 >> C:\Go\src\runtime\utf8.go:21: t1 redeclared in this block >> previous declaration at C:\Go\src\runtime\rune.go:31 >> C:\Go\src\runtime\utf8.go:22: tx redeclared in this block >> previous declaration at C:\Go\src\runtime\rune.go:32 >> C:\Go\src\runtime\utf8.go:23: t2 redeclared in this block >> previous declaration at C:\Go\src\runtime\rune.go:33 >> C:\Go\src\runtime\utf8.go:24: t3 redeclared in this block >> previous declaration at C:\Go\src\runtime\rune.go:34 >> C:\Go\src\runtime\utf8.go:25: t4 redeclared in this block >> previous declaration at C:\Go\src\runtime\rune.go:35 >> C:\Go\src\runtime\utf8.go:26: t5 redeclared in this block >> previous declaration at C:\Go\src\runtime\rune.go:36 >> C:\Go\src\runtime\utf8.go:28: maskx redeclared in this block >> previous declaration at C:\Go\src\runtime\rune.go:43 >> >> I got it working by uninstalling Go, removing the directory completely in >> the explorer, and reinstalled Go. >> >> Shouldn't the MSI installer remove the previous Go installation before >> installing the new files ? Not sure if I did something wrong. >> > -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.