bmizerany / vendor

Vendor copies go dependencies to ./vendor
52 stars 6 forks source link

make sure test-only imports are also vendored #10

Closed djspoons closed 7 years ago

djspoons commented 8 years ago

e.g. mypkg/foo_test.go depends on otherpkg/helper.go but no other file in mypkg does without this PR, helper.go isn't copied to vendor.

This includes TestImports with along with Deps. "TestDeps" would have been better but no such thing exists.

djspoons commented 8 years ago

@bmizerany This seem cool?

bmizerany commented 7 years ago

Why do you want test dependices?

djspoons commented 7 years ago

It's not that I want to test deps, but that I want to run my tests and they have deps that don't appear in non-test code. Specifically, I have tests that use github.com/opentracing/opentracing-go/mocktracer.

djspoons commented 7 years ago

cleaning up my old PRs