|author||Bryan C. Mills <firstname.lastname@example.org>||Fri Jun 04 17:34:44 2021 -0400|
|committer||Bryan C. Mills <email@example.com>||Tue Jun 08 18:59:50 2021 +0000|
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 <firstname.lastname@example.org> Run-TryBot: Bryan C. Mills <email@example.com> TryBot-Result: Go Bot <firstname.lastname@example.org> Reviewed-by: Michael Matloob <email@example.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.