blob: 2ca8b3cace22ced2b2dac9ca4e7dc8e47a244ff8 [file] [log] [blame]
# If a replacement module declares a module path different from both
# the original module and its location, report an error with all three paths.
# In particular, the "required as" path should be the original.
# Verifies
! go mod download
cmp stderr want
-- go.mod --
module m
require v1.5.2
replace v1.5.2 => v1.5.2
-- use.go --
package use
import _ ""
-- want --
go: (replaced by parsing go.mod:
module declares its path as:
but was required as: