Package: golang-1.10
Version: 1.10.1-1

Running the experimental `vgo` command[1] produces the following error:

vgo requires Go 1.10 but VGOROOT=/usr/lib/go-1.10 is not a Go 1.10 source
tree

It uses[2] the presence of `api/go1.10.txt` to detect the Go version, but
Debian does not ship this file.

### Workaround

Creating the file resolves the problem.

$ mkdir -p /usr/lib/go-1.10/api; touch /usr/lib/go-1.10/api/go1.10.txt


### Environment

$ ls -al $(which go)
lrwxrwxrwx 1 root root 21 Feb 28 16:51 /usr/bin/go -> ../lib/go-1.10/bin/go*
$ go version
go version go1.10.1 linux/amd64


[1] https://github.com/golang/vgo
[2]
https://github.com/golang/vgo/blob/master/vendor/cmd/go/internal/cfg/cfg.go#L124

Reply via email to