-
Notifications
You must be signed in to change notification settings - Fork 18k
cmd/go: install "malformed file path" for source code filenames outside the Unicode BMP #50396
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
Comments
I think the names of files in modules have additional restrictions, not everything that is permitted by the zip specification is allowed. https://go.dev/ref/mod#zip-path-size-constraints
|
Duplicate of #45549 |
The file in question is not a Go file, but a file for testing. The filename has quotes in it, causing error during install: $ go install github.com/MawKKe/audiobook-split-ffmpeg-go/cmd/audiobook-split-ffmpeg@latest go: github.com/MawKKe/audiobook-split-ffmpeg-go/cmd/audiobook-split-ffmpeg@latest: create zip: test/beep with spaces and some' quotes" in name.m4a: malformed file path "test/beep with spaces and some' quotes\" in name.m4a": invalid char '\'' Perhaps these are related? - golang/go#50396 - golang/go#45549 Idk, life is too short for dealing with shitty tooling...
Hello, I have a small question: If we do not check other files which do not affect compilation in the |
As reported at google/wuffs#62 (comment)
The github.com/google/wuffs repository indeed has a file named test/data/non-ascii/😻.txt and e.g.
git clone
seems OK with it.😻 is U+1F63B SMILING CAT FACE WITH HEART-SHAPED EYES (in UTF-8: [F0 9F 98 BB]), outside of the Unicode Basic Multilingual Plane (BMP).
If I'm reading the ZIP specification correctly, section "4.6.9 -Info-ZIP Unicode Path Extra Field (0x7075)" suggests that it's possible for ZIP files to contain (UTF-8 encoded) Unicode file names.
The text was updated successfully, but these errors were encountered: