-
Notifications
You must be signed in to change notification settings - Fork 274
Preserve file permissions in the zip archive, fix bugs in gitignore matching and keep mvm and gradle files #5224
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
…ore mattern matching and keep mvm and gradle files
...s-community/src/software/aws/toolkits/jetbrains/services/amazonq/FeatureDevSessionContext.kt
Fixed
Show fixed
Hide fixed
...s-community/src/software/aws/toolkits/jetbrains/services/amazonq/FeatureDevSessionContext.kt
Fixed
Show fixed
Hide fixed
| @@ -0,0 +1,4 @@ | |||
| { | |||
| "type" : "bugfix", | |||
| "description" : "Preserve file permissions in the zip archive, fix bugs in gitignore matching and keep mvm and gradle files" | |||
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.
Is the change user facing, ie is a changelog required here?
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.
yep, it does have a user facing change. updated the messaging.
| val file = Files.createTempFile(null, ".zip") | ||
| ZipOutputStream(file.outputStream()).use { zipOutput -> block(zipOutput) } | ||
| file | ||
| private suspend fun createTemporaryZipFileAsync(block: suspend (FileSystem) -> Unit): Path = withContext(EDT) { |
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.
Should this be on the background thread?
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.
good call, changed it to run on background
Preserve file permissions in the zip archive, fix bugs in gitignore matching and keep mvm and gradle files
Types of changes
Description
ZipOutputStreamdoesn't include file permission when archiving. Switching to ZipFS to be able to preserve the permissions on the archivessettings.gradlefile being ignored due to.gradlerule in gitignore. Changed the logic to fix it.Checklist
License
I confirm that my contribution is made under the terms of the Apache 2.0 license.