|author||Jay Conrod <email@example.com>||Fri Feb 26 16:21:27 2021 -0500|
|committer||Jay Conrod <firstname.lastname@example.org>||Mon Mar 01 14:47:19 2021 +0000|
module: allow leading dots in import path elements These were always disallowed, but the restriction wasn't enforced in most cases until Go 1.16. That's broken more projects than we hoped. This change allows leading dots in import path elements. Leading dots are still not allowed in module path elements. Leading dots were always allowed in file path elements. Trailing dots are still forbidden in all cases. For golang/go#43985 Change-Id: Id9cf728a341931565ab9e81f600b2341aa178683 Reviewed-on: https://go-review.googlesource.com/c/mod/+/297089 Trust: Jay Conrod <email@example.com> Run-TryBot: Jay Conrod <firstname.lastname@example.org> TryBot-Result: Go Bot <email@example.com> Reviewed-by: Bryan C. Mills <firstname.lastname@example.org>
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.