Clone this repo:
  1. 0f08993 modfile: add SetRequireSeparateIndirect by Bryan C. Mills · 8 weeks ago internal-branch.go1.17-vendor master
  2. 22458ad modfile: factor out methods for changing Require properties by Bryan C. Mills · 8 weeks ago
  3. 9eb10b1 modfile: make marking for removal a method on Line instead of FileSyntax by Bryan C. Mills · 8 weeks ago
  4. 6e4e729 modfile: clean up SetRequire by Bryan C. Mills · 8 weeks ago
  5. ad21a28 modfile: document (*File).*Require methods by Bryan C. Mills · 9 weeks ago



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.