Skip to content

Conversation

besendorf
Copy link
Collaborator

fixes #61

Copy link
Collaborator

@roaree roaree left a 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

@besendorf
Copy link
Collaborator Author

besendorf commented Jul 17, 2025

Done. AddFS already handles backslashes
The CI cant compile go 1.22. I also noticed this in #66

Copy link
Collaborator

@roaree roaree left a 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
@besendorf besendorf merged commit 16f44dc into main Jul 23, 2025
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Windows extractions are incompatible when checked with mvt-android check-androidqf
2 participants