diff options
author | Bryan C. Mills <bcmills@google.com> | 2019-08-27 15:36:21 -0400 |
---|---|---|
committer | Bryan C. Mills <bcmills@google.com> | 2019-08-27 20:36:50 +0000 |
commit | 8f5353fd1c0598bf5c92d67ffe8cfa1424115694 (patch) | |
tree | 1b8318b86ed45bff10d1422b9039e14a92a69d12 /src/cmd/go/internal/modload/load.go | |
parent | c302785df941f10a4350f895e0c48886b582e609 (diff) | |
download | go-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.go | 2 |
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) |