Skip to content

Commit fbe4254

Browse files
committed
feat: add CGO_ENABLED=0
1 parent 0f42164 commit fbe4254

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

lang/golang/parser/pkg.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -208,6 +208,7 @@ func (p *GoParser) loadPackages(mod *Module, dir string, pkgPath PkgPath) (err e
208208
return fmt.Errorf("load path '%s' with CGO failed: %v", dir, err)
209209
}
210210
} else {
211+
cfg.Env = append(cfg.Env, "CGO_ENABLED=0")
211212
pkgs, err = packages.Load(cfg, pkgPath)
212213
if err != nil {
213214
return fmt.Errorf("load path '%s' failed: %v", dir, err)

0 commit comments

Comments
 (0)