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
_tarxOptions in FetcherBase specifies an extraction filter that removes any tar entry that has a type matching Link. node-tar marks files that have more than one hardlink on them as being of type Link. This makes the behavior of tarballStream differ dependent on whether one of the source files happens to have the same inode as another source file. Only one copy of the hardlinked files will thus end up in the target directory.
This is problematic for systems like Guix System where identical files may be deduplicated with hardlinks.
Expected Behavior
The effective output of the tarballStream should be the same independent of whether the involved files share inodes.
Is there an existing issue for this?
Current Behavior
_tarxOptions
inFetcherBase
specifies an extraction filter that removes any tar entry that has a type matchingLink
. node-tar marks files that have more than one hardlink on them as being of typeLink
. This makes the behavior oftarballStream
differ dependent on whether one of the source files happens to have the same inode as another source file. Only one copy of the hardlinked files will thus end up in the target directory.This is problematic for systems like Guix System where identical files may be deduplicated with hardlinks.
Expected Behavior
The effective output of the
tarballStream
should be the same independent of whether the involved files share inodes.Steps To Reproduce
This is what this looks like:
Now install pkgA and observe that index.js only appears once.
We only see dist/index.js, not its hardlinked alter ego:
Environment
The text was updated successfully, but these errors were encountered: