@@ -184,7 +184,7 @@ func compileInDir(runcmd runCmd, dir string, flags []string, importcfg string, p
184
184
if importcfg == "" {
185
185
importcfg = stdlibImportcfgFile ()
186
186
}
187
- cmd := []string {goTool , "tool" , "compile" , "-e" , "-D" , "test" , "-importcfg=" + importcfg }
187
+ cmd := []string {goTool , "tool" , "compile" , "-e" , "-D" , "test" , "-errorurl=false" , "- importcfg=" + importcfg }
188
188
if pkgname == "main" {
189
189
cmd = append (cmd , "-p=main" )
190
190
} else {
@@ -201,7 +201,7 @@ func compileInDir(runcmd runCmd, dir string, flags []string, importcfg string, p
201
201
return runcmd (cmd ... )
202
202
}
203
203
204
- var stdlibImportcfgStringOnce sync.Once // TODO(#56102): Use sync.OnceValue once availabe . Also below.
204
+ var stdlibImportcfgStringOnce sync.Once // TODO(#56102): Use sync.OnceValue once available . Also below.
205
205
var stdlibImportcfgString string
206
206
207
207
func stdlibImportcfg () string {
@@ -745,7 +745,7 @@ func (t test) run() error {
745
745
// Fail if wantError is true and compilation was successful and vice versa.
746
746
// Match errors produced by gc against errors in comments.
747
747
// TODO(gri) remove need for -C (disable printing of columns in error messages)
748
- cmdline := []string {goTool , "tool" , "compile" , "-p=p" , "-d=panic" , "-C" , "-e" , "-importcfg=" + stdlibImportcfgFile (), "-o" , "a.o" }
748
+ cmdline := []string {goTool , "tool" , "compile" , "-p=p" , "-d=panic" , "-C" , "-e" , "-errorurl=false" , "- importcfg=" + stdlibImportcfgFile (), "-o" , "a.o" }
749
749
// No need to add -dynlink even if linkshared if we're just checking for errors...
750
750
cmdline = append (cmdline , flags ... )
751
751
cmdline = append (cmdline , long )
0 commit comments