-
Notifications
You must be signed in to change notification settings - Fork 488
add support for GO15VENDOREXPERIMENT #151
Comments
I'm not sure ignoring is right. The |
I think that it's pretty sane to assume that your dependencies should not fail on For Alternatively, a |
@adg proposed to use this workaround for the
Maybe we could make this work for the My current workaround (in a
|
In my opinion, the go tool should be ignoring vendor - to me this code should be exactly like library code in your workspace, just in the vendor/. I think vendor is a snapshot that most people would want to leave untouched. If you did want to locally fork in vendor, explicitly providing vendor/path/to/thing seems perfectly fine. I'm betting the 90% case is like what @toxeus, @brocaar, and I are experiencing. Adding ignore option would be an ok workaround. @brocaar - thanks for the workaround - that unblocks our CI for the time being. |
golang/go#12278 is probably going to be the right solution. Every tool that operates on Go packages shouldn't hack in their own mechanism for handling vendored packages. |
@brocaar you can do that with a one-liner: |
Just wanted to chime in that this is currently kind of non-obvious, and a workaround being documented better (or supporting the same workaround used for the |
The only remaining piece is to make sure that vendored imports are actually type checked correctly, and that only requires switching golint to using the |
It would be very nice if
|
@dsymonds wrote:
With the release of Go 1.9 the |
see #320 as this issue is closed |
For background see here and here. Therefore,
golint
will blindly check vendored dependencies whenGO15VENDOREXPERIMENT=1
. Since we cannot expect all dependencies to begolint
compliant thevendor
folder should be ignored bygolint
whenGO15VENDOREXPERIMENT=1
.The text was updated successfully, but these errors were encountered: