-
Notifications
You must be signed in to change notification settings - Fork 81
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
module: add a MatchPrefixPatterns function, for matching GOPRIVATE, etc.
This CL exposes a new MatchPrefixPatterns function, extracted from GlobsMatchPath in src/cmd/go/internal/str. Tool authors can use this to identify non-public modules by matching against GOPRIVATE, as is explicitly suggested by `go help module-private`. Fixes golang/go#38725 Change-Id: I5be79b49c2c13f2d68c7421a06747a297f48f21a Reviewed-on: https://go-review.googlesource.com/c/mod/+/239797 Run-TryBot: Robert Findley <rfindley@google.com> TryBot-Result: Gobot Gobot <gobot@golang.org> Reviewed-by: Jay Conrod <jayconrod@google.com>
- Loading branch information
Showing
2 changed files
with
81 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters