Dep: 'could not import' error coming from `gotype`

Created on 10 Sep 2017  路  3Comments  路  Source: golang/dep

What version of dep are you using (dep version)?

installed from homebrew (my version of dep has no version command...?)
brew info dep gives > dep: stable 0.3.0 (bottled), HEAD

What dep command did you run?

dep init

What did you expect to see?

that gotype would not produce any errors during linting.

What did you see instead?

gotype give the error:

monitor/monitor.go:10:2:error: could not import github.com/docker/docker/api/types (/Users/Jeff/Development/go/pkg/darwin_amd64/github.com/deltaskelta/docker-alertd/vendor/github.com/docker/docker/api/types.a: cannot import, possibly version skew (unknown export format version 5 ("version 5")) - reinstall package) (gotype)

This is my first time using dep and I could not find any references by googling. The package builds ok, but my linter is always showing errors here. I understand the issue may be from gotype as well, but I don't see why the import should have any reason to fail

Most helpful comment

right...

it turns out that gotype just needed an update 馃憤

All 3 comments

hi, welcome, thanks for the issue! i agree with google, this is also my first time seeing this :)

so, to be clear, dep init exited cleanly and gave you a Gopkg.toml, Gopkg.lock and vendor, and then gotype failed with this error afterwards?

right...

it turns out that gotype just needed an update 馃憤

phew :)

Was this page helpful?
0 / 5 - 0 ratings

Related issues

tapir picture tapir  路  3Comments

michael-go picture michael-go  路  3Comments

rogpeppe picture rogpeppe  路  4Comments

jiharal picture jiharal  路  3Comments

cemremengu picture cemremengu  路  3Comments