Skip to content
This repository has been archived by the owner on Apr 10, 2019. It is now read-only.

vendor not work in go 1.10+ #589

Closed
daixiang0 opened this issue Feb 2, 2019 · 5 comments
Closed

vendor not work in go 1.10+ #589

daixiang0 opened this issue Feb 2, 2019 · 5 comments

Comments

@daixiang0
Copy link

I can not skip vendor lint, the log is here.

The old val of Vendor in config is true, but it can not skip vendor dir, so i change it to false, still can not work.

I test locally, same result.

Config file is here

Makefile is here.

@dnephin
Copy link
Collaborator

dnephin commented Feb 2, 2019

#562 (comment)

@daixiang0
Copy link
Author

@dnephin I change to use go1.10.4, but gometalinter --vendor ./... still can not work.

@daixiang0
Copy link
Author

daixiang0 commented Feb 3, 2019

@dnephin hi,i follow comment but get:

$ GO111MODULE=on go mod vendor
go: github.com/cespare/xxhash@v0.0.0-20190104012619-3b82fb7d1867: go.mod has post-v0 module path "github.com/cespare/xxhash/v2" at revision 3b82fb7d1867
go: error loading module requirements

I do not know how to fix it, could you help me?

@daixiang0
Copy link
Author

@dnephin any input?

@dnephin
Copy link
Collaborator

dnephin commented Feb 11, 2019

It sounds like the problem is that one of your dependencies is incompatible with go mod. go mod expects a v2 directory to mean the dependency is version 2, but in this case the dependency is marked as v0.0.0.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants