We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
go version
Go 1.10.3
No
Tried to load imports of a test package
a_test.go:
package a import ( "testing" "github.com/other/package" )
Try to load packages with tests:
cfg := &packages.Config { Mode: packages.LoadImports, Tests: true, } pkgs, err := packages.Load(cfg, "a")
I expected imports of the package that included "a_test.go" to include "testing" and "github.com/other/pkg".
The test package does not have "testing" or "github.com/other/pkg" in Imports.
The fallback implementation does not load the dependencies of tests or xtests.
The text was updated successfully, but these errors were encountered:
Change https://golang.org/cl/127457 mentions this issue: go/packages: include test deps in golist fallback
go/packages: include test deps in golist fallback
Sorry, something went wrong.
golang/tools@78b3e71
No branches or pull requests
What version of Go are you using (
go version
)?Go 1.10.3
Does this issue reproduce with the latest release?
No
What did you do?
Tried to load imports of a test package
a_test.go:
Try to load packages with tests:
What did you expect to see?
I expected imports of the package that included "a_test.go" to include "testing" and "github.com/other/pkg".
What did you see instead?
The test package does not have "testing" or "github.com/other/pkg" in Imports.
The fallback implementation does not load the dependencies of tests or xtests.
The text was updated successfully, but these errors were encountered: