Open dagood opened 1 month ago
Related Issues and Documentation
(Emoji vote if this was helpful or unhelpful; more detailed feedback welcome in this discussion.)
If I delete VERSION
, rerun make.bat
, and then ..\bin\go test cmd/go -run TestScript/mod_tidy_newroot
, the test passes.
CC @matloob, @findleyr.
I can reproduce on Windows (though not on macOS) so this might be a Windows-specific issue. I'll try to find a fix.
It didn't happen for me on Linux either, I agree it's probably specific to running on Windows.
cc @findleyr
Running the test on windows it seems to be writing counters to a file called C:\Users\matloob\AppData\Local\Temp\cmd-go-test-2272649242\tmpdir1967189891\mod_tidy_newroot3105556267\telemetry\local\go@go1.23rc2 X:aliastypeparams-go1.23rc2 X:aliastypeparams-windows-amd64-2024-08-02.v1.count
We get the following error trying to open the file: The filename, directory name, or volume label syntax is incorrect
.
I think that we expect that when the version name is not a devel version, say "go1.23rc2" that the version name doesn't contain anything other than the version name, but with GOEXPERIMENTS it adds the experiment names to the version. I think we should probably? mark those as devel.
to a file called
C:\Users\matloob\AppData\Local\Temp\cmd-go-test-2272649242\tmpdir1967189891\mod_tidy_newroot3105556267\telemetry\local\go@go1.23rc2 X:aliastypeparams-go1.23rc2 X:aliastypeparams-windows-amd64-2024-08-02.v1.count
You should avoid using column ":" in the Windows file names. Just in case you did not know that.
Alex
Go version
go version go1.23rc2 windows/amd64
Output of
go env
in your module/workspace:What did you do?
In pwsh, in
src
:(Many other TestScripts will fail in this situation because they share the telemetry check, but I chose this one as an example with relatively low output.)
What did you see happen?
If I don't limit the test run, many other test scripts fail with the same error
script_test.go:401: go was invoked but no counters were incremented
.I got the same bad result with
$env:GOEXPERIMENT='arenas'
.What did you expect to see?
I got this result with
go version devel go1.24-792a261303 Wed Jul 24 18:59:46 2024 +0000 windows/amd64
on the same machine.