You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Function "ImportErrorf" employs an overzealous sanity check to impel cmd/go to show its path context but doesn't take into account a component which transforms non-printable characters into their quoted form.
Go version
go version go1.22.3 linux/amd64
Output of
go env
in your module/workspace:What did you do?
What did you see happen?
Function "ImportErrorf" employs an overzealous sanity check to impel cmd/go to show its path context but doesn't take into account a component which transforms non-printable characters into their quoted form.
Cf. https://cs.opensource.google/go/go/+/refs/tags/go1.22.5:src/cmd/go/internal/load/pkg.go;l=539 [2024-07-14, 2024-08-06]
What did you expect to see?
I would have expected not to be able to provoke a panic in choosing an odd pathname.
Curiously, command "go help" spits back the control character.
Earnestly, I would have expected the name to get escaped to "\x01" in both "go help" and "go [run|test|build]".
The text was updated successfully, but these errors were encountered: