-
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: create zip: malformed file path: invalid char '·' #41402
Comments
A similar failure with ':' after workaround: $ go get lab.nexedi.com/kirr/neo/go@t
go: downloading lab.nexedi.com/kirr/neo v1.8.2-0.20200915132355-8783ff63fc24
go get lab.nexedi.com/kirr/neo/go@t: create zip: malformed file path "t/time/time-soct12-neo1-neo2.txt-tgro20-txc:200µs4f": invalid char ':' |
This is working as intended I'm afraid. There are a number of constraints on file and directory names within modules. These constraints ensure that module zip files can be extracted consistently on a wide variety of file systems. If you don't want to include those files in the module archive, you can add an empty |
oh, I see. Ok... |
I know this issue is closed. So perhaps this should be a new issue. @jayconrod I was just wondering if there is a Cheers, |
@mewmew Sorry, no. While the go command can clone repositories using The goal here is to ensure that modules can be extracted and used consistently on a wide variety of platforms and file systems. The constraint you mentioned in particular (500MB size limit) is nearly always enough for source code. You can exclude directories containing test data and other large files by placing a |
Thank you for the added background information @jayconrod. Cheers, |
Unfortunately, I have unit tests that need to exactly reproduce with a test file that ends in |
@thediveo as a workaround you could create those files dynamically in the test setup, i.e. those files with Go-incompatible names are never commited into the repo. |
True, but that's very cumbersome and error prone. |
Hello up there.
I've tried to modularize my workspace and hit the error shown in subject.
Unlike #40749 here the "invalid" character is in file name that is outside of any go package just living in the same repository in a separate directory. Please find details below.
Thanks beforehand,
Kirill
What version of Go are you using (
go version
)?Does this issue reproduce with the latest release?
Yes
What operating system and processor architecture are you using (
go env
)?go env
OutputWhat did you do?
$ go get lab.nexedi.com/kirr/neo/go/zodb@37dc79789954
What did you expect to see?
go get
succeeds.What did you see instead?
The text was updated successfully, but these errors were encountered: