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
This is because by default go will pull the latest tagged version of the repo. And the latest tag (https://github.com/moby/moby/tree/v17.03.2-ce) does not have the errdefs package.
Use go get github.com/docker/docker/errdefs@master to get the errdefs package.
And you don't need to use vgo anymore. Module support is integrated in to the Go toolchain, and vgo is going to be removed soon.
What version of Go are you using (
go version
)?Does this issue reproduce with the latest release?
Yes (I just installed
vgo
today)What operating system and processor architecture are you using (
go env
)?go env
OutputWhat did you do?
I have a file myfile.go with contents:
I can use
go get
successfully to fetch the errdefs package needed above:But using
vgo build
fails:My guess it has something to do with either:
go get
looks up these dependencies)errdefs.go
file inhttps://github.com/moby/moby/tree/master/errdefs
Note that I don't encounter this problem when importing other related packages:
What did you expect to see?
I expected
vgo build
to succeed.What did you see instead?
vgo build
failed with error:The text was updated successfully, but these errors were encountered: