You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
A built binary, which logs the ping message to/from dockerd, say:
{1.36 linux false} <nil>
What did you see instead?
vgo: resolving import "github.com/docker/docker/client"
vgo: import "github.com/jakebailey/dvgotest" ->
import "github.com/docker/docker/client": module path of repo is github.com/moby/moby, not github.com/docker/docker/client (moved)
Which is kind of correct, however the Docker source has maintained its github.com/docker/docker/* package names, even though the repos were moved to the moby account. However, github.com/docker/docker/* is the cannoical name for the imports. This has caused issues before, most recently golang/gddo#534.
Replacing the import path with the (technically incorrect) github.com/moby/moby/client nets this result:
vgo: resolving import "github.com/moby/moby/client"
findRepo: XML syntax error on line 13: expected attribute name in element
vgo: finding github.com/moby/moby (latest)
vgo: adding github.com/moby/moby v1.13.1
vgo: finding github.com/moby/moby v1.13.1
findRepo: XML syntax error on line 13: expected attribute name in element
vgo: finding github.com/moby/moby v1.13.1
findRepo: XML syntax error on line 13: expected attribute name in element
vgo: parsing downloaded go.mod: go.mod:21: invalid module: github.com/coreos/go-systemd should be v1, not v4 (v4.0.0)
go.mod:41: invalid module: github.com/godbus/dbus should be v1, not v4 (v4.0.0)
go.mod:81: invalid module: github.com/tchap/go-patricia should be v1, not v2 (v2.2.6)
Which (besides the XML syntax errors) confusingly refers to packages that the Docker client doesn't even import, but I found in moby.out and moby.vconf in golang.org/x/vgo/vendor/cmd/go/internal/modconv/testdata.
For reference, a minimal Gopkg.toml to make the Docker client work looks like:
I wasn't expecting a complicated project like the Docker client to work with such an early demo, but I figured I report it so it's on the books. Happy vgo-ing.
The text was updated successfully, but these errors were encountered:
For what it's worth, I just repeated this test with vgo 7c0cf33f39ccf5d8e4c59d34a150425ddac7df6a and apart from go.googlesource.com giving me a temporary internal error, it builds just fine.
Here's a slightly edited history of commands I ran on a fresh GCE vm running Debian 9.4 (default):
wget https://dl.google.com/go/go1.10.2.linux-amd64.tar.gz
mkdir src
cd src
tar xvzf ~/go1.10.2.linux-amd64.tar.gz
cd
export PATH=$PATH:$PWD/src/go/bin
sudo apt-get install git build-essential
go get golang.org/x/vgo
export PATH=$PATH:$PWD/go/bin
mkdir z
cd z
cat >main.go
touch go.mod
vgo build -v
./dvgotest
What version of Go are you using (
go version
)?Does this issue reproduce with the latest release?
Yes? (Not sure how to answer this given it's
x/vgo
and all.)What operating system and processor architecture are you using (
go env
)?What did you do?
Created an out-of-GOPATH directory, with a
main.go
with the following contents.Then, did a
vgo build
.What did you expect to see?
A built binary, which logs the ping message to/from dockerd, say:
What did you see instead?
Which is kind of correct, however the Docker source has maintained its
github.com/docker/docker/*
package names, even though the repos were moved to the moby account. However,github.com/docker/docker/*
is the cannoical name for the imports. This has caused issues before, most recently golang/gddo#534.Replacing the import path with the (technically incorrect)
github.com/moby/moby/client
nets this result:Which (besides the XML syntax errors) confusingly refers to packages that the Docker client doesn't even import, but I found in
moby.out
andmoby.vconf
ingolang.org/x/vgo/vendor/cmd/go/internal/modconv/testdata
.For reference, a minimal Gopkg.toml to make the Docker client work looks like:
I wasn't expecting a complicated project like the Docker client to work with such an early demo, but I figured I report it so it's on the books. Happy vgo-ing.
The text was updated successfully, but these errors were encountered: