diff --git a/oracle/oracle.go b/oracle/oracle.go index 0a30ad38..4cdd2eca 100644 --- a/oracle/oracle.go +++ b/oracle/oracle.go @@ -278,6 +278,9 @@ func parseQueryPos(lprog *loader.Program, posFlag string, needExact bool) (*quer // allowErrors causes type errors to be silently ignored. // (Not suitable if SSA construction follows.) func allowErrors(lconf *loader.Config) { + ctxt := *lconf.Build // copy + ctxt.CgoEnabled = false + lconf.Build = &ctxt lconf.AllowErrors = true lconf.TypeChecker.Error = func(err error) {} }