commit | fa1ba4269bda724bb9f01ec381fbbaf031e45833 | [log] [tgz] |
---|---|---|
author | Aofei Sheng <aofei@aofeisheng.com> | Sat Nov 04 19:02:03 2023 +0800 |
committer | Gopher Robot <gobot@golang.org> | Fri Jan 26 20:57:38 2024 +0000 |
tree | d83234bb6d9678d022fa5900d29e3218ca8e38b0 | |
parent | 6e58e47c7bd6672665dc35cce7b1f325d2addd67 [diff] |
sumdb: replace globsMatchPath with module.MatchPrefixPatterns In CL 239797, src/cmd/go/internal/str.GlobsMatchPath was replicated as module.MatchPrefixPatterns. This redundancy eliminates the need for globsMatchPath. This CL replaces calls to globsMatchPath with module.MatchPrefixPatterns and removes the now redundant globsMatchPath. Change-Id: Idd6fc10e7cf24d7b9603fa17edb2460d50b2e4aa Reviewed-on: https://go-review.googlesource.com/c/mod/+/539815 Auto-Submit: Bryan Mills <bcmills@google.com> Reviewed-by: Cherry Mui <cherryyz@google.com> Reviewed-by: Bryan Mills <bcmills@google.com> LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
This repository holds packages for writing tools that work directly with Go module mechanics. That is, it is for direct manipulation of Go modules themselves.
It is NOT about supporting general development tools that need to do things like load packages in module mode. That use case, where modules are incidental rather than the focus, should remain in x/tools, specifically x/tools/go/packages.
The specific case of loading packages should still be done by invoking the go command, which remains the single point of truth for package loading algorithms.