aboutsummaryrefslogtreecommitdiff
path: root/src/cmd/go/internal/modload/load.go
diff options
context:
space:
mode:
authorBryan C. Mills <bcmills@google.com>2019-08-27 15:36:21 -0400
committerBryan C. Mills <bcmills@google.com>2019-08-27 20:36:50 +0000
commit8f5353fd1c0598bf5c92d67ffe8cfa1424115694 (patch)
tree1b8318b86ed45bff10d1422b9039e14a92a69d12 /src/cmd/go/internal/modload/load.go
parentc302785df941f10a4350f895e0c48886b582e609 (diff)
downloadgo-8f5353fd1c0598bf5c92d67ffe8cfa1424115694.tar.gz
go-8f5353fd1c0598bf5c92d67ffe8cfa1424115694.zip
cmd/go/internal/modload: fix swapped paths in error message
Updates #33879 Change-Id: Ifc91490b1cb791fdf5ffe69ef81c0ec0e6cbecc3 Reviewed-on: https://go-review.googlesource.com/c/go/+/191997 Run-TryBot: Bryan C. Mills <bcmills@google.com> Reviewed-by: Alexander Rakoczy <alex@golang.org>
Diffstat (limited to 'src/cmd/go/internal/modload/load.go')
-rw-r--r--src/cmd/go/internal/modload/load.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cmd/go/internal/modload/load.go b/src/cmd/go/internal/modload/load.go
index 52b371e5a9..b50a084166 100644
--- a/src/cmd/go/internal/modload/load.go
+++ b/src/cmd/go/internal/modload/load.go
@@ -1140,7 +1140,7 @@ func (r *mvsReqs) required(mod module.Version) ([]module.Version, error) {
if mpath := f.Module.Mod.Path; mpath != origPath && mpath != mod.Path {
return nil, module.VersionError(mod, fmt.Errorf(`parsing go.mod:
module declares its path as: %s
- but was required as: %s`, mod.Path, mpath))
+ but was required as: %s`, mpath, mod.Path))
}
if f.Go != nil {
r.versions.LoadOrStore(mod, f.Go.Version)