-
Notifications
You must be signed in to change notification settings - Fork 540
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
glide ignore packages in test files #103
Comments
I had not thought about this before. What's happening here is the Should test imports be on the @technosophos any thoughts on this? |
My initial intent when I added |
I see the opposite with https://github.com/syndtr/goleveldb. There are several dependencies that are only needed to run the tests which are included in the Glide should gain a
One of the primary purposes of glide is, of course, to provide reproducible builds and installs to end user and developers alike. To that end, testing of dependencies is squarely aimed more at developers than end users and thus should really be opt-in with a flag/optional keyword, just like It is slightly debatable whether the test-only dependencies of the project itself are included by default, but packages only required by the tests in dependencies should most definitely not be included given the version was specifically pinned because it is already known good and tested. |
I am running into this as well. I have a project of just integration tests written in go. My workaround has been to include a dummy non-test file that looks like this:
But I'd rather not have to do that, obviously. |
I've added #320 to track resolving test imports. |
Please see #461 which is trying to fix the management of test imports. Reviews appreciated. |
Fixed. Tip of master now handles test imports. |
when I run glide guess/glide pin, they showed list of packages but missing those that I use for *_test.go.
Is that a feature or should it be fixed?
Thanks
The text was updated successfully, but these errors were encountered: