Clone this repo:
  1. 766dc5d modfile: use new go version string format in WorkFile.add error by Sam Thanawalla · 4 weeks ago master
  2. fa1ba42 sumdb: replace globsMatchPath with module.MatchPrefixPatterns by Aofei Sheng · 4 months ago v0.15.0
  3. 6e58e47 modfile: improve directory path detection and error text consistency by Dmitri Shuralyov · 9 months ago v0.14.0
  4. 5b69280 modfile: use new go version string format in error message by Sean Liao · 6 months ago v0.13.0
  5. 273ef6c go.mod: update to go 1.18 and x/tools v0.13.0 by Dmitri Shuralyov · 6 months ago

mod

PkgGoDev

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.