lint: stop using deprecated go/packages api (#87)

The packages.Load* constants have been deprecated in favor of packages.Need*.
This commit is contained in:
Michael McLoughlin
2019-06-13 11:20:49 -07:00
committed by GitHub
parent 83fbad1a6b
commit 3355ecfbfd
2 changed files with 2 additions and 2 deletions

View File

@@ -51,7 +51,7 @@ func TestLookupSignatureErrors(t *testing.T) {
func LoadPackageTypes(t *testing.T, path string) *types.Package {
t.Helper()
cfg := &packages.Config{
Mode: packages.LoadTypes,
Mode: packages.NeedTypes,
}
pkgs, err := packages.Load(cfg, path)
if err != nil {