-
Notifications
You must be signed in to change notification settings - Fork 17.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
cmd/go: regression: UTF-8 package import path fails on master, succeeds on go1.15.6 #43035
Comments
This comes from golang/mod@5d307ac, where @rsc imported CheckImportPath() from cmd/go/internal/module.
which leads to https://go-review.googlesource.com/c/go/+/124378/ I'm fine if support for non-ascii is officially not supported, but I'd vote for documenting this as a regression in the release notes, since it used to work and does work on godoc as shown in issue #43036 . |
See previously #29101, particularly #29101 (comment). |
FWIW, I also see an error here when using
|
I agree that we should have a 1.16 release note for this, though. I've filed that as #43052. |
Thanks, I'll remove the non-ascii path in this test and will make a release. Side note: I really wonder what I did wrong for panicparse v2.0.1 in go module mode to fetch v1.5.1 but that's a separate story. Will ask on the slack channel. |
That's just an idiosyncrasy of |
Duplicate of #43052 |
What are the users of packages which are using Cyrillic names (or other non-ASCII scripts) supposed to do now? Using older compilers isn't a good long-term plan. Renaming all packages to use English names is also a lot of work. :( |
What version of Go are you using (
go version
)?Does this issue reproduce with the latest release?
Not on go1.15.6.
What operating system and processor architecture are you using (
go env
)?go env
OutputWhat did you do?
Run unit tests for corner cases for import paths.
What did you expect to see?
Non-ascii import path works.
What did you see instead?
Non-ascii import path fails as if it didn't exist.
Source: https://github.com/maruel/panicparse/blob/v2.0.1/cmd/panic/internal/%C3%B9tf8/%C3%B9tf8.go
A bisect points to https://go-review.googlesource.com/c/go/+/258298
Paging author @bcmills
Bisected with golang checked out at $HOME/src-oth/golang and github.com/maruel/panicparse checked out at $HOME/src/panicparse:
$HOME/src-oth/bisect.sh:
and $HOME/src-oth/test.sh:
I used panicparse at origin/master but I expect v2.0.1 to have the same outcome.
To be clear, it's a corner case. I'm not sure there's a lot of people that create non-ascii package path name but it'd be sad if it regressed. Should probably have a unit test for this.
The text was updated successfully, but these errors were encountered: