aboutsummaryrefslogtreecommitdiff
path: root/src/cmd/internal
diff options
context:
space:
mode:
authorRobert Griesemer <gri@google.com>2023-05-24 16:30:49 +0000
committerGopher Robot <gobot@golang.org>2023-05-24 16:46:45 +0000
commit42f387aae123ec416b57d84ba96ec4a5ef0e8a1b (patch)
treed738598ec729501a5efe70e082154399b1ed7a7f /src/cmd/internal
parent0adcc5ace8c01d8bf587827e672120d74fbaca36 (diff)
downloadgo-42f387aae123ec416b57d84ba96ec4a5ef0e8a1b.tar.xz
Revert "cmd/compile: enable printing of error URLs by default"
This reverts commit e7a9ca0a53db4b4f357b5d3caaef65e44ce08a90. Reason for revert: Decided to delay to Go 1.22. Change-Id: I4635cb4c1372b54cac573041be8a43e294de5183 Reviewed-on: https://go-review.googlesource.com/c/go/+/497975 TryBot-Result: Gopher Robot <gobot@golang.org> Run-TryBot: Robert Griesemer <gri@google.com> Reviewed-by: Russ Cox <rsc@golang.org> Auto-Submit: Robert Griesemer <gri@google.com> Reviewed-by: Robert Griesemer <gri@google.com>
Diffstat (limited to 'src/cmd/internal')
-rw-r--r--src/cmd/internal/testdir/testdir_test.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/cmd/internal/testdir/testdir_test.go b/src/cmd/internal/testdir/testdir_test.go
index d9f78f2f6a..c86cc20a9c 100644
--- a/src/cmd/internal/testdir/testdir_test.go
+++ b/src/cmd/internal/testdir/testdir_test.go
@@ -184,7 +184,7 @@ func compileInDir(runcmd runCmd, dir string, flags []string, importcfg string, p
if importcfg == "" {
importcfg = stdlibImportcfgFile()
}
- cmd := []string{goTool, "tool", "compile", "-e", "-D", "test", "-errorurl=false", "-importcfg=" + importcfg}
+ cmd := []string{goTool, "tool", "compile", "-e", "-D", "test", "-importcfg=" + importcfg}
if pkgname == "main" {
cmd = append(cmd, "-p=main")
} else {
@@ -201,7 +201,7 @@ func compileInDir(runcmd runCmd, dir string, flags []string, importcfg string, p
return runcmd(cmd...)
}
-var stdlibImportcfgStringOnce sync.Once // TODO(#56102): Use sync.OnceValue once available. Also below.
+var stdlibImportcfgStringOnce sync.Once // TODO(#56102): Use sync.OnceValue once availabe. Also below.
var stdlibImportcfgString string
func stdlibImportcfg() string {
@@ -745,7 +745,7 @@ func (t test) run() error {
// Fail if wantError is true and compilation was successful and vice versa.
// Match errors produced by gc against errors in comments.
// TODO(gri) remove need for -C (disable printing of columns in error messages)
- cmdline := []string{goTool, "tool", "compile", "-p=p", "-d=panic", "-C", "-e", "-errorurl=false", "-importcfg=" + stdlibImportcfgFile(), "-o", "a.o"}
+ cmdline := []string{goTool, "tool", "compile", "-p=p", "-d=panic", "-C", "-e", "-importcfg=" + stdlibImportcfgFile(), "-o", "a.o"}
// No need to add -dynlink even if linkshared if we're just checking for errors...
cmdline = append(cmdline, flags...)
cmdline = append(cmdline, long)