[short] skip

go mod download example.com/printversion@v0.1.0 example.com/printversion@v1.0.0
go get -d example.com/printversion@v0.1.0
go install example.com/printversion

go run example.com/printversion
cmp stdout out.txt

go version -m $GOPATH/bin/printversion$GOEXE
stdout '^.*[/\\]bin[/\\]printversion'$GOEXE': .*$'
stdout '^	path	example.com/printversion$'
stdout '^	mod	example.com/printversion	v0.1.0$'
stdout '^	=>	example.com/printversion	v1.0.0	h1:.*$'
stdout '^	dep	example.com/version	v1.0.0$'
stdout '^	=>	example.com/version	v1.0.1	h1:.*$'

-- go.mod --
module golang.org/issue/37392
go 1.14
require (
	example.com/printversion v0.1.0
)
replace (
	example.com/printversion => example.com/printversion v1.0.0
	example.com/version v1.0.0 => example.com/version v1.0.1
)
-- out.txt --
path is example.com/printversion
main is example.com/printversion v0.1.0
	(replaced by example.com/printversion v1.0.0)
using example.com/version v1.0.0
	(replaced by example.com/version v1.0.1)
