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:
committed by
GitHub
parent
83fbad1a6b
commit
3355ecfbfd
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user