commit | 67f1c1edc27ada9b0cffe84ccdd4db2d4ff56edf | [log] [tgz] |
---|---|---|
author | komuW <komuw05@gmail.com> | Tue May 04 16:01:26 2021 +0000 |
committer | Bryan C. Mills <bcmills@google.com> | Tue May 04 18:10:20 2021 +0000 |
tree | 54741f5e2605404d4d07ec194b421602a4be7ab5 | |
parent | fb786b187e6c6f1205699605a60b08dbbd6b9e74 [diff] |
modfile: take into account that // indirect comments may not be well formatted When there is an // indirect comment next to a dependency that is not actually indirect; go mod tidy should remove it. This was not the case when the //indirect comment was badly formatted. We now check whether such a comment exists irrespective of the formatting. Updates golang/go#45932 Change-Id: I6a7dca23059a0aca6f8f940da975a0d79f701571 GitHub-Last-Rev: b884ee1a3ecf821f9b6b68bf061bbe0c521c8143 GitHub-Pull-Request: golang/mod#3 Reviewed-on: https://go-review.googlesource.com/c/mod/+/316569 Reviewed-by: Bryan C. Mills <bcmills@google.com> Trust: Bryan C. Mills <bcmills@google.com> Trust: Jay Conrod <jayconrod@google.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.