Skip to content
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

unzip should preserve symbolic links on windows #1082

Closed
wants to merge 2 commits into from

Conversation

campersau
Copy link
Contributor

@campersau campersau commented Nov 22, 2019

Adding test which shows that cross-zip does not preserve symbolic links on windows. After this build fails I will add another commit which reverts #984 to show that this worked before.


Fixing this is only the first step in enabling building macOS packages on windows.
The next problem is that fs-extra is using fs.stat instead of fs.lstat which failes for symbolic links on windows. (I will open an issue there and see if this is intended or not.) So the package can not be moved:
https://github.com/electron/electron-packager/blob/2e974d1211020eb22ac75c21cc0966b9bfaac216/src/platform.js#L215
EDIT: Or maybe this is only an issue on my machines? Because all the fs-extra symlink tests are failing on my machine even when running as administrator... I will investigate more...

@welcome
Copy link

welcome bot commented Nov 22, 2019

Thanks for opening a pull request!

Here are some highlighted action items that will help get it across the finish line, from the
pull request guidelines:

  • Follow the JavaScript coding style.
  • Run npm run lint locally to catch formatting errors earlier.
  • Document any user-facing changes in NEWS.md and other docs.
  • Include tests when adding/changing behavior.

Development and triage is community-driven, so please be patient and we will get back to you as soon as we can.

@codecov-io
Copy link

codecov-io commented Nov 22, 2019

Codecov Report

Merging #1082 into master will decrease coverage by 0.02%.
The diff coverage is 100%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #1082      +/-   ##
==========================================
- Coverage   97.57%   97.55%   -0.03%     
==========================================
  Files          14       14              
  Lines         702      695       -7     
==========================================
- Hits          685      678       -7     
  Misses         17       17
Impacted Files Coverage Δ
src/unzip.js 100% <100%> (ø) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 2e974d1...8f73f35. Read the comment docs.

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.

2 participants