llgen bugfix

This commit is contained in:
xushiwei
2024-04-29 20:51:27 +08:00
parent a6d31ad8b8
commit fc893ba498
7 changed files with 19 additions and 40 deletions

View File

@@ -37,7 +37,7 @@ const (
func GenFrom(fileOrPkg string) string {
cfg := &packages.Config{
Mode: loadSyntax,
Mode: loadSyntax | packages.NeedDeps,
}
initial, err := packages.Load(cfg, fileOrPkg)
check(err)