-
Notifications
You must be signed in to change notification settings - Fork 15
Fix Windows zip backslash bug #65
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
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the quick PR!
While looking into the question of the original code license from the gist, I found that go v1.22 actually implemented a function for adding an entire directory to a zip archive: https://pkg.go.dev/archive/zip#Writer.AddFS .
I'm not sure if this also suffers from adding backslashes on Windows? It would be good to see if we can just upgrade our go version and replace this code with one line calling that function. Otherwise, for avoidance of any licensing doubt, could you please take the implementing code from Golang directly and modify it accordingly to replace the backslashes? https://cs.opensource.google/go/go/+/refs/tags/go1.24.5:src/archive/zip/writer.go;l=503-542
Done. AddFS already handles backslashes |
9251af0
to
2ed5b28
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks fine, feel free to go ahead and merge once CI is fixed by #68
- Add Go 1.22 setup to both CI and release workflows - Update actions/checkout from v2 to v4 - Update actions/setup-go from v4 to v5 with cache enabled - Update staticcheck version to 2023.1.7 (supports Go 1.22) - Set install-go: false to use our own Go setup - Fix YAML indentation and formatting - Resolves Go 1.22 compilation error
fixes #61