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

yarn pack on Windows doesn't put execute permissions on directories #8109

Open
nborko opened this issue May 8, 2020 · 1 comment
Open

yarn pack on Windows doesn't put execute permissions on directories #8109

nborko opened this issue May 8, 2020 · 1 comment

Comments

@nborko
Copy link

nborko commented May 8, 2020

Bug description

Running yarn pack on Windows creates a tarball that doesn't include execute permissions on directories.

Command

yarn pack

What is the current behavior?
All directories and files are 0666. It's understandable that executable files may not be executable, even under git-bash, but the resulting tarball cannot be extracted in a POSIX environment due to incorrect directory permissions.

What is the expected behavior?
Tarballs generated from yarn pack in Windows should be extractable everywhere tar is supported.

Steps to Reproduce
Run yarn pack on Windows, copy the tarball to Linux, MacOS X, etc., and tar zxf package-version.tgz

Environment

  • Node Version: v12.14.1
  • Yarn v2 Version: 1.22.4 (yarn v1 also exhibits this behavior)
  • OS and version: Windows 10 Pro 1909 18363.815
@pauldraper
Copy link

Yikes, I just ran into this with StreakYC/react-draggable-list#67

It made it impossible to extract the tarball on Linux (without some extra funkiness at least).

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

No branches or pull requests

2 participants