-
Notifications
You must be signed in to change notification settings - Fork 17.7k
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
cmd/go: skip finding external test dependencies for go build #29725
Comments
/cc @bcmills |
All modules in the module graph can affect the selected versions of other modules, so we must have at least the Test dependencies must be included in the module graph: without them, test results are not reproducible. The |
@bcmills Thanks for response. But as you said
As I mentioned I'm not running any tests, that tests results do you have in mind? The problem is that there is no way to describe dependency as being used only for tests. Why not add special comment like
|
Those |
See #26955. |
What version of Go are you using (
go version
)?What did you do?
go build
for production. I'm not running any go-nio/nio library tests.What did you expect to see?
Now I expect go build output to show only runtime dependencies.
What did you see instead?
Instead I see all dependencies including external library test dependencies.
The text was updated successfully, but these errors were encountered: