|author||Michael Matloob <firstname.lastname@example.org>||Thu Jun 03 15:24:36 2021 -0400|
|committer||Michael Matloob <email@example.com>||Fri Jul 23 20:07:15 2021 +0000|
[dev.cmdgo] modfile: parser changes for workfile proposal This change adds interfaces to the mod package to support parsing and representing go.work files, including WorkFile for the file as a whole, Directory for directory statements, and ParseWork for parsing go.work files. This code is mostly a lightly modified version of the parsing code for mod files. This is meant to support the workspaces proposal and if the proposal is accepted it's expected theinterface will likely change. For #45713 Change-Id: I5df6fe4acba1dbe86bc3e3fba40a04fbb4d678e4 Reviewed-on: https://go-review.googlesource.com/c/mod/+/336089 Trust: Michael Matloob <firstname.lastname@example.org> Run-TryBot: Michael Matloob <email@example.com> TryBot-Result: Go Bot <firstname.lastname@example.org> Reviewed-by: Jay Conrod <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.