Clone this repo:
  1. c96bc14 x/mod: update requirement on x/crypto by Jay Conrod · 2 weeks ago master
  2. ecfafd6 semver: remove unused err field by Koichi Shiraishi · 4 weeks ago
  3. dd30a60 module: accept trailing slash in MatchPrefixPattern by HowJMay · 5 weeks ago
  4. 37dd689 modfile: in SetRequireSeparateIndirect, convert lines to blocks by Jay Conrod · 7 weeks ago
  5. 4be982b modfile: in SetRequireSeparateIndirect, arrange requirements consistently by Jay Conrod · 2 months 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.