-
Notifications
You must be signed in to change notification settings - Fork 588
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
Zip.zip removes all file permissions on linux/mac #2019
Comments
Sadly this is afaik a limitation of the .net core framework. And I think there is an issue open for it. I'm not 100% sure, but I think there is nothing we can do besides using 3rd party libs or our own zip reader/writer... |
Thanks @matthid - I was going through the code of I think I can close this issue, unless you need it to be tracked. BTW, thanks for all the hard work. I just moved to Fake5 and I am impressed in the amount of details that you have put for migration. Cheers! |
@sriv Yes we can close this here, but we should at least find the correct issue where this is tracked and link it here (or create a new one in the corefx repository if none exists). |
The most relevant seems to be https://github.com/dotnet/corefx/issues/14853 But a lot of issues have popped up everywhere over time:
My understanding is that most of the time they added a workaround to call |
While I closed this: Changing the underlying implementation to one that supports this scenario is welcome and a PR would be merged. However it is out of scope for myself, but we can re-open if anyone starts to volunteer. |
Description
Creating an archive using
Zip.zip
api, causes all file permissions to be lost on linux/macos.Repro steps
Build Target source:
Travis Build Logs:
https://travis-ci.org/getgauge/gauge-csharp/builds/401621274
Observe the below:
ls
original content: https://travis-ci.org/getgauge/gauge-csharp/jobs/401621276#L3066create the archive: https://travis-ci.org/getgauge/gauge-csharp/jobs/401621276#L3065
extract archive: https://travis-ci.org/getgauge/gauge-csharp/jobs/401621276#L3080
inspect extracted files: https://travis-ci.org/getgauge/gauge-csharp/jobs/401621276#L3141
Please provide the steps required to reproduce the problem
On Linux/macOS :
git clone https://github.com/getgauge/gauge-csharp -b 137
./build.sh -t Package
check original permissions:
ls -al artifacts/gauge-csharp
unzip artifacts/gauge-csharp/gauge-csharp-0.10.5.zip -d artifacts/gauge-csharp/out
ls -al artifacts/gauge-csharp/out
Expected behavior
The file permissions should be the same before and after archiving.
Actual behavior
Extracted contents lose all file permissions:
Known workarounds
None, I am happy to try any suggestions.
Related information
The text was updated successfully, but these errors were encountered: