You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Do you want to request a feature or report a bug?
Bug
What is the current behavior?
While working on a PR for #755 I found a weird behaviour with yarn pack.
Basically whenever the package has a nonempty file in a directory the produced archive will be corrupt.
It still seems unlikely that this is really bug and not some error on my part because this should happen with pretty much every package , but I have tried all kinds of stuff and can't see what I might be doing wrong.
If the current behavior is a bug, please provide the steps to reproduce.
I have actually found this by writing some tests for this and will add a PR with the failing tests.
To reproduce this manually:
Create a minimal example, for example just index.js. Add some code to index.js because this will only work if the file is not empty.
Then run yarn pack and extract the archive - everything should be fine so far.
Move index.js in a directory.
Run yarn pack and extract again - this should fail because the archive is corrupted.
For comparison you can use npm pack, this should work in both cases.
What is the expected behavior?
It should be possible to pack and publish a package with files in directories.
Please mention your node.js, yarn and operating system version.
I have tested this with node 6.2.1 and 6.9.1, yarn 0.15.1 and current master, osx 10.12
The text was updated successfully, but these errors were encountered:
Do you want to request a feature or report a bug?
Bug
What is the current behavior?
While working on a PR for #755 I found a weird behaviour with yarn pack.
Basically whenever the package has a nonempty file in a directory the produced archive will be corrupt.
It still seems unlikely that this is really bug and not some error on my part because this should happen with pretty much every package , but I have tried all kinds of stuff and can't see what I might be doing wrong.
If the current behavior is a bug, please provide the steps to reproduce.
I have actually found this by writing some tests for this and will add a PR with the failing tests.
To reproduce this manually:
Create a minimal example, for example just index.js. Add some code to index.js because this will only work if the file is not empty.
Then run yarn pack and extract the archive - everything should be fine so far.
Move index.js in a directory.
Run yarn pack and extract again - this should fail because the archive is corrupted.
For comparison you can use npm pack, this should work in both cases.
What is the expected behavior?
It should be possible to pack and publish a package with files in directories.
Please mention your node.js, yarn and operating system version.
I have tested this with node 6.2.1 and 6.9.1, yarn 0.15.1 and current master, osx 10.12
The text was updated successfully, but these errors were encountered: