-
-
Notifications
You must be signed in to change notification settings - Fork 83
Add support for permissions and symlinks in os.zip/unzip with vendored zip source code from Apache Ant #374
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
Merged
Merged
Changes from 26 commits
Commits
Show all changes
32 commits
Select commit
Hold shift + click to select a range
1f8472c
Add support for zip/unzip permissions and symlinks
kiendang 848c40a
Vendor apache ant zip
kiendang 390ade4
Check vendored Apache Ant zip source code to git
kiendang 075ddda
Configure Scala Steward to regenerate vendored Apache Ant source on u…
kiendang fed2222
Move vendored code to its own module and add shims
kiendang 42c5a7c
Make the vendored code public
kiendang 088bb2d
Use S_IFMT equivalent from Apache Ant
kiendang 2bd47d6
Add tests
kiendang c977a95
Fix symlinks
kiendang ef56789
Fix Windows
kiendang 2250210
Fix test
kiendang 5237582
Store sym links as the referenced file by default
kiendang 4127ca1
Replace .toNIO call with the more efficient .wrapped
kiendang e8a38e2
Preserve permissions for modifying a zip file in place
kiendang 0822593
Add doc
kiendang 86af317
Add some test comments
kiendang dc347a5
Rename arg
kiendang 431e4c7
Edit doc
kiendang c2551e3
Add doc to mill task
kiendang 3c6daf8
Add more test comments
kiendang 3dfa3fd
.
kiendang b64a38f
Add to readme
kiendang f572c6d
Support zipping symlinks as symlinks on Windows
kiendang 5725d20
Add test
kiendang 8beed9b
Support unzipping symlinks as symlinks on Windows
kiendang f32ef37
Format
kiendang b082d41
Make the shaded code generatedSources
kiendang 92c325a
Test zip and unzip directory permission preservation
kiendang 580ebfe
Preserve zipped directory permissions
kiendang e2cce26
Test directory permission preservation for existing zips
kiendang 00cf04e
Preserve zipped directory permissions
kiendang 3c9e576
Add note on os.unzip.stream not supporting perms and symlinks
kiendang File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,6 @@ | ||
| postUpdateHooks = [{ | ||
| command = ["./mill", "os.apacheAntZipSource"], | ||
| commitMessage = "Update vendored Apache Ant", | ||
| groupId = "org.apache.ant", | ||
| artifactId = "ant" | ||
| }] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
Can we make this a
def generatedSourcesfolder? That way we won't won't need to commit all the vendored code to the repo, and can rely on the build tool re-generating it on demand as necessaryThere 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.
Yes