Join GitHub today
proposal: x/mod: new repo for module mechanics #31761
For the initial development of module support, we've kept everything in internal directories to make it easier to make changes as our understanding of what the pieces should look like becomes clearer. But now I think the basic pieces have become pretty clear, and we should think about exporting some packages to help other people who want to write tools working directly with module mechanics.
Note that I said "module mechanics". This is about supporting direct manipulation of 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. And the specific case of loading packages should still be done by invoking the go command, which will remain the single point of truth for those algorithms.
I propose to create a new repo golang.org/x/mod that will initially contain:
There's an open issue that this proposal addresses (about exposing some of this stuff) but once again I cannot find it.
referenced this issue
Apr 30, 2019
Consider pseudo-version related logic as well
The list of packages above looks good. I expect this will be useful for developing
I notice that none of