diff --git a/src/cmd/go/internal/mvs/mvs.go b/src/cmd/go/internal/mvs/mvs.go index a1b51557a35..eb33ebd24b9 100644 --- a/src/cmd/go/internal/mvs/mvs.go +++ b/src/cmd/go/internal/mvs/mvs.go @@ -166,7 +166,7 @@ func buildList(targets []module.Version, reqs Reqs, upgrade func(module.Version) } return false } - return nil, NewBuildListError(err.(error), errPath, isUpgrade) + return nil, NewBuildListError(err, errPath, isUpgrade) } // The final list is the minimum version of each module found in the graph.