[pkg-golang-devel] Bug#894992: vgo fails to run

Tom M mockturtl at gmail.com
Thu Apr 5 23:02:49 UTC 2018


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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.alioth.debian.org/pipermail/pkg-golang-devel/attachments/20180405/52fda1da/attachment.html>


More information about the pkg-golang-devel mailing list