aboutsummaryrefslogtreecommitdiff
path: root/src/cmd/internal/pkgpattern/pkgpattern.go
AgeCommit message (Collapse)Author
2025-09-16cmd/go: check pattern for utf8 validity before call regexp.MustCompileYoulin Feng
Do not panic if the package path or the package version contains invalid UTF-8 characters. Fixes #75251 Change-Id: Ib787e74277cf814253857b911d378ea5e53d8824 Reviewed-on: https://go-review.googlesource.com/c/go/+/700815 Reviewed-by: Michael Matloob <matloob@google.com> LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com> Reviewed-by: Ian Alexander <jitsu@google.com> Reviewed-by: Michael Matloob <matloob@golang.org>
2022-09-27cmd: relocate search.MatchPattern to cmd/internal/pkgpatternThan McIntosh
Relocate cmd/go's search.MatchPattern helper routine to a new package in cmd/internal from its current location, as to allow it to be used in other tools that accept package pattern command line flags. No change in functionality along the way. Updates #51430. Change-Id: I726e974ccd66a055bb5a94497b36b8d68d47cad1 Reviewed-on: https://go-review.googlesource.com/c/go/+/432757 Reviewed-by: Bryan Mills <bcmills@google.com>