You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The answer is to use golang.org/x/tools/go/packages, under development now. If you find any problems using that package, please file new issues against it. Thanks very much.
Please answer these questions before submitting your issue. Thanks!
What version of Go are you using (
go version
)?tip
Does this issue reproduce with the latest release?
n/a
What operating system and processor architecture are you using (
go env
)?darwin/amd64
What did you do?
build.Import()
returns an error when trying to load a package from a module with version greater than 1.I got to this indirectly through this:
Where
cfg.Check
returned:What did you expect to see?
The
go/*
packages in the stdlib work the same way as vgo with the ability to load packages from versioned modules.What did you see instead?
The errors listed above
The text was updated successfully, but these errors were encountered: