commit | b56a28f8bd8379d47ee77b658799ce29061f6abe | [log] [tgz] |
---|---|---|
author | Conrad Irwin <conrad.irwin@gmail.com> | Wed Jun 21 13:00:28 2023 -0600 |
committer | Michael Matloob <matloob@golang.org> | Thu Jul 18 17:52:20 2024 +0000 |
tree | d0ccf8c7c7c5df9e78766044e5147f50555a24cb | |
parent | 79169e9d3645b69457c3c546644e29ba620146e7 [diff] |
modfile: Add support for tool lines Add new tool directive to go.mod parser and functions to add and drop them. For golang/go#48429 Change-Id: I37667a69ded9d59ea248ec48ad35c87592103218 Reviewed-on: https://go-review.googlesource.com/c/mod/+/508355 Reviewed-by: Michael Matloob <matloob@golang.org> Reviewed-by: Sam Thanawalla <samthanawalla@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.