commit | 68949049742f737ac4d54f48b1291f3b73d1b4f6 | [log] [tgz] |
---|---|---|
author | Michael Matloob <matloob@golang.org> | Tue Feb 25 12:51:04 2025 -0500 |
committer | Michael Matloob <matloob@golang.org> | Fri Feb 28 14:09:39 2025 -0800 |
tree | 7afbb42119611edd813ff71eddcfc3bc122a9951 | |
parent | 64feded8afd7280f533e09138efa31b6772e34ce [diff] |
cmd/go/internal/modindex: clean modroot and pkgdir for openIndexPackage GetPackage is sometimes called with a modroot or pkgdir that ends with a path separator, and sometimes without. Clean them before passing them to openIndexPackage to deduplicate calls to mcache.Do and action entry files. This shouldn't affect #71698 but was discovered while debugging that issue. Change-Id: I6a7fa4de93f45801504abea11bd97f6c6577f296 Reviewed-on: https://go-review.googlesource.com/c/go/+/652435 Reviewed-by: Alan Donovan <adonovan@google.com> LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Go is an open source programming language that makes it easy to build simple, reliable, and efficient software.
Gopher image by Renee French, licensed under Creative Commons 4.0 Attribution license.
Our canonical Git repository is located at https://go.googlesource.com/go. There is a mirror of the repository at https://github.com/golang/go.
Unless otherwise noted, the Go source files are distributed under the BSD-style license found in the LICENSE file.
Official binary distributions are available at https://go.dev/dl/.
After downloading a binary release, visit https://go.dev/doc/install for installation instructions.
If a binary distribution is not available for your combination of operating system and architecture, visit https://go.dev/doc/install/source for source installation instructions.
Go is the work of thousands of contributors. We appreciate your help!
To contribute, please read the contribution guidelines at https://go.dev/doc/contribute.
Note that the Go project uses the issue tracker for bug reports and proposals only. See https://go.dev/wiki/Questions for a list of places to ask questions about the Go language.