Skip to content

Conversation

@Lampei
Copy link
Collaborator

@Lampei Lampei commented Jan 18, 2018

I found that symlinks did not appear to be followed when zipping directories on Windows using the nodeZip method.
By expanding the pattern in "matches", it now appears to follow those links to the underlying directories and subdirectories.

My current directory structure was e.g. ./node_modules/linked_folder/node_modules/(many other folders here). Prior to the change it would just insert the "symlinked folders" as "symlinks" in the zip file. This change will now add the actual folders that were symlinked to (which I think makes more sense than how it previously functioned).

This has only been validated on a windows machine, so if anyone is on a mac and can test using symlinked folders, please feel free to give that a try.

This also allows us to maintain the v0.21.0 archiver rather than upgrading to the latest, which would have many breaking changes.

I found that symlinks did not appear to be followed when zipping directories on Windows using the NodeZip method.
By expanding the pattern in "matches", it now appears to follow those links to the underlying directories and subdirectories.

My current directory structure was e.g. ./node_modules/linked_folder/node_modules/(many other folders here).  Prior to the change it would just insert the "symlinked folders" as "symlinks" in the zip file.  This change will now add the actual folders that were symlinked to (which I *think* makes more sense than how it previously functioned).

This has only been validated on a windows machine, so if anyone is on a mac and can test using symlinked folders, please feel free to give that a try.

This also allows us to maintain the v0.21.0 archiver rather than upgrading to the latest, which would have many breaking changes.
@nfriedly
Copy link
Owner

I believe this is superseded by #36

@nfriedly nfriedly closed this Jul 27, 2020
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.

3 participants