|author||Jay Conrod <email@example.com>||Fri Feb 26 16:21:27 2021 -0500|
|committer||Dmitri Shuralyov <firstname.lastname@example.org>||Tue Mar 02 22:50:53 2021 +0000|
[internal-branch.go1.16-vendor] 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#44647 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> (cherry picked from commit c8bb1bd8a2aaa5c50fa106c8116850d503792d16) Reviewed-on: https://go-review.googlesource.com/c/mod/+/298009 Reviewed-by: Dmitri Shuralyov <email@example.com>
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.