commit | 9eb10b1d3ef8d9670f415c42ac1df64e6ff4296d | [log] [tgz] |
---|---|---|
author | Bryan C. Mills <bcmills@google.com> | Fri Jun 04 17:34:44 2021 -0400 |
committer | Bryan C. Mills <bcmills@google.com> | Tue Jun 08 18:59:50 2021 +0000 |
tree | ec864f00355c7fbb20d96880596be5db89fc7f85 | |
parent | 6e4e7296867b5c082b3a1b4c3aa03051b7d11953 [diff] |
modfile: make marking for removal a method on Line instead of FileSyntax The act of marking a line for removal intentionally does not depend on the rest of the syntax tree, in order to avoid quadratic behavior. Make that property more explicit by defining it as a method on Line rather than FileSyntax. For golang/go#45965 Change-Id: I475625eddf57396411a3fb73eaedd624dd7af3d6 Reviewed-on: https://go-review.googlesource.com/c/mod/+/325969 Trust: Bryan C. Mills <bcmills@google.com> Run-TryBot: Bryan C. Mills <bcmills@google.com> TryBot-Result: Go Bot <gobot@golang.org> Reviewed-by: Michael Matloob <matloob@golang.org>
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.