From 2dd7e94e163f172472273b81846e6e3add412bc6 Mon Sep 17 00:00:00 2001 From: Russ Cox Date: Wed, 5 Nov 2025 15:02:52 -0500 Subject: [PATCH] cmd/go: use go.dev instead of golang.org in flag errors Also add the URL to the one possible error that didn't have it. It looks like CL 93836 just missed the third error case when adding the URL. Change-Id: I837f8a730b25adb42909c9dfbde0dad2f664fec5 Reviewed-on: https://go-review.googlesource.com/c/go/+/718220 Reviewed-by: Michael Matloob Auto-Submit: Russ Cox LUCI-TryBot-Result: Go LUCI Reviewed-by: Michael Matloob --- src/cmd/go/internal/work/security.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/cmd/go/internal/work/security.go b/src/cmd/go/internal/work/security.go index 3b3eba536cb..cb228d9e4d8 100644 --- a/src/cmd/go/internal/work/security.go +++ b/src/cmd/go/internal/work/security.go @@ -375,13 +375,13 @@ Args: } if i+1 < len(list) { - return fmt.Errorf("invalid flag in %s: %s %s (see https://golang.org/s/invalidflag)", source, arg, list[i+1]) + return fmt.Errorf("invalid flag in %s: %s %s (see https://go.dev/s/invalidflag)", source, arg, list[i+1]) } - return fmt.Errorf("invalid flag in %s: %s without argument (see https://golang.org/s/invalidflag)", source, arg) + return fmt.Errorf("invalid flag in %s: %s without argument (see https://go.dev/s/invalidflag)", source, arg) } } Bad: - return fmt.Errorf("invalid flag in %s: %s", source, arg) + return fmt.Errorf("invalid flag in %s: %s (see https://go.dev/s/invalidflag)", source, arg) } return nil }