Skip to content
This repository has been archived by the owner on May 7, 2018. It is now read-only.

Feature request: option to not vendor test files #7

Open
nathany opened this issue Aug 23, 2015 · 2 comments
Open

Feature request: option to not vendor test files #7

nathany opened this issue Aug 23, 2015 · 2 comments

Comments

@nathany
Copy link

nathany commented Aug 23, 2015

This is an nice way to avoid running tests files for every vendor folder when using go test ./....

github.com/kardianos/govendor can now ignore test files and arbitrary build tags. If you don't want to run tests, then we don't vendor them.

golang/go#11659 (comment)

@nathany nathany changed the title Option to not vendor test files Feature request: option to not vendor test files Aug 23, 2015
@kr kr added the enhancement label Aug 23, 2015
@kr
Copy link
Owner

kr commented Aug 23, 2015

👍

@nathany
Copy link
Author

nathany commented Aug 24, 2015

Might I suggest having a -t option similar to go get -t:

The -t flag instructs get to also download the packages required to build the tests for the specified packages.

The -t option could copy the test packages as well as _test.go files. The default would be to not bring tests over.

Or to keep things simple, maybe there is no option at all?

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

No branches or pull requests

2 participants