]> Cypherpunks repositories - gostls13.git/commitdiff
cmd/dist: fix goroot typo in panic message
authorjjpinto <jorgpinto@gmail.com>
Mon, 5 Jan 2026 22:59:29 +0000 (22:59 +0000)
committerCherry Mui <cherryyz@google.com>
Fri, 9 Jan 2026 20:40:04 +0000 (12:40 -0800)
Change-Id: I636a029eedaab0967b774648670710d1303a1f7c
GitHub-Last-Rev: 519faedc5b8327696efeeb431ef66e9fd29f0db7
GitHub-Pull-Request: golang/go#77081
Reviewed-on: https://go-review.googlesource.com/c/go/+/734080
Reviewed-by: Ian Lance Taylor <iant@golang.org>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: Junyang Shao <shaojunyang@google.com>
Reviewed-by: Cherry Mui <cherryyz@google.com>
src/cmd/dist/imports.go

index 0ec2b06c4f6e7af6e12906b678d5bf4b52e6a2ab..c00369a6ba1e09973158c62a994af43408317069 100644 (file)
@@ -259,6 +259,6 @@ func resolveVendor(imp, srcDir string) string {
        } else if strings.HasPrefix(srcDir, filepath.Join(goroot, "src")) {
                return path.Join("vendor", imp)
        } else {
-               panic(fmt.Sprintf("srcDir %q not in GOOROT/src", srcDir))
+               panic(fmt.Sprintf("srcDir %q not in GOROOT/src", srcDir))
        }
 }