cmd/go: script_test.go:156: FAIL: testdata/script/mod_install_versioned.txt:10: stdout v2: unexpected success #67989
Labels
GoCommand
cmd/go
help wanted
NeedsInvestigation
Someone must examine and confirm this is a valid issue and not a duplicate of an existing one.
Go version
go version go1.22.2 darwin/amd64
Output of
go env
in your module/workspace:What did you do?
cd src
./all.bash
What did you see happen?
vcs-test.golang.org rerouted to http://127.0.0.1:53553
https://vcs-test.golang.org rerouted to https://127.0.0.1:53554
go test proxy running at GOPROXY=http://127.0.0.1:53555/mod
--- FAIL: TestScript (3.58s)
--- FAIL: TestScript/mod_install_versioned (0.92s)
script_test.go:132: 2024-06-13T09:56:38Z
script_test.go:134: $WORK=/var/folders/z7/n0tv2cg9297f48jkh47lmf840000gq/T/cmd-go-test-2433300649/tmpdir1468200491/mod_install_versioned731445043
script_test.go:156:
> env GO111MODULE=on
> go get rsc.io/fortune
[stderr]
go: downloading rsc.io/fortune v1.0.0
go: downloading rsc.io/quote v1.5.2
go: downloading rsc.io/sampler v1.3.0
go: downloading golang.org/x/text v0.0.0-20170915032832-14c0d48ead0c
go: added golang.org/x/text v0.0.0-20170915032832-14c0d48ead0c
go: added rsc.io/fortune v1.0.0
go: added rsc.io/quote v1.5.2
go: added rsc.io/sampler v1.3.0
> go list -f '{{.Target}}' rsc.io/fortune
[stdout]
/var/folders/z7/n0tv2cg9297f48jkh47lmf840000gq/T/cmd-go-test-2433300649/tmpdir1468200491/mod_install_versioned731445043/gopath/bin/fortune
> ! stdout fortune@v1
> stdout 'fortune(.exe)?$'
matched: /var/folders/z7/n0tv2cg9297f48jkh47lmf840000gq/T/cmd-go-test-2433300649/tmpdir1468200491/mod_install_versioned731445043/gopath/bin/fortune
> go get rsc.io/fortune/v2
[stderr]
go: downloading rsc.io/fortune/v2 v2.0.0
go: added rsc.io/fortune/v2 v2.0.0
> go list -f '{{.Target}}' rsc.io/fortune/v2
[stdout]
/var/folders/z7/n0tv2cg9297f48jkh47lmf840000gq/T/cmd-go-test-2433300649/tmpdir1468200491/mod_install_versioned731445043/gopath/bin/fortune
> ! stdout v2
matched: /var/folders/z7/n0tv2cg9297f48jkh47lmf840000gq/T/cmd-go-test-2433300649/tmpdir1468200491/mod_install_versioned731445043/gopath/bin/fortune
script_test.go:156: FAIL: testdata/script/mod_install_versioned.txt:10: stdout v2: unexpected success
FAIL
FAIL cmd/go 490.379s
What did you expect to see?
ok
seems my path contains a "v2" in
-ffile-prefix-map
and script matched in! stdout v2
The text was updated successfully, but these errors were encountered: