Skip to content

Commit

Permalink
Replace use of deprecated packages.NeedExportsFile
Browse files Browse the repository at this point in the history
(cherry picked from commit 4d36970)
  • Loading branch information
dominikh committed May 16, 2022
1 parent c336ff7 commit 78b8b4c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion cmd/structlayout/main.go
Expand Up @@ -42,7 +42,7 @@ func main() {
}

cfg := &packages.Config{
Mode: packages.NeedImports | packages.NeedExportsFile | packages.NeedTypes | packages.NeedSyntax,
Mode: packages.NeedImports | packages.NeedExportFile | packages.NeedTypes | packages.NeedSyntax,
Tests: true,
}
pkgs, err := packages.Load(cfg, flag.Args()[0])
Expand Down
2 changes: 1 addition & 1 deletion go/loader/loader.go
Expand Up @@ -73,7 +73,7 @@ func Graph(c *cache.Cache, cfg *packages.Config, patterns ...string) ([]*Package
dcfg.Mode = packages.NeedName |
packages.NeedImports |
packages.NeedDeps |
packages.NeedExportsFile |
packages.NeedExportFile |
packages.NeedFiles |
packages.NeedCompiledGoFiles |
packages.NeedTypesSizes |
Expand Down

0 comments on commit 78b8b4c

Please sign in to comment.