commit | 046e8b3d5933382dffe76828b6a5b15f34ec72e0 | [log] [tgz] |
---|---|---|
author | hopehook <hopehook.com@gmail.com> | Tue May 24 13:28:05 2022 +0800 |
committer | Gopher Robot <gobot@golang.org> | Wed Aug 10 15:25:27 2022 +0000 |
tree | fe8ad967be55d9f2b164ab34d5c5b564c7150262 | |
parent | 86c51ed26bb44749b7d60a57bab0e7524656fe8a [diff] |
modfile: improve error message for replace with '@' in path Replacement module must match format 'path version', not 'path@version'. In this case, return a more explicit error message. Fixes golang/go#35041. Change-Id: I4d1437fc7499abca4af426afb535bfdd0f5b254e Reviewed-on: https://go-review.googlesource.com/c/mod/+/408014 Auto-Submit: Dmitri Shuralyov <dmitshur@golang.org> Reviewed-by: Bryan Mills <bcmills@google.com> TryBot-Result: Gopher Robot <gobot@golang.org> Reviewed-by: Dmitri Shuralyov <dmitshur@google.com> Run-TryBot: Dmitri Shuralyov <dmitshur@golang.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.