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
This library creates a temp file by appending some hash to the target file name. This is bad because when the target file name is really long (but still inside the filesystem limit) the temp file name might get out of that limit and a ENAMETOOLONG error will happen
We started to have this issue in pnpm v5, where we have really long file names in the content-addressable storage.
Related issue: pnpm/pnpm#2605
How
Current Behavior
The temp file name is the <target file>.<hash>
Steps to Reproduce
Write a file that has a name 1 character shorter than the accepted limit.
Expected Behavior
The temp file name is short or at least not longer than the target file name.
What / Why
This library creates a temp file by appending some hash to the target file name. This is bad because when the target file name is really long (but still inside the filesystem limit) the temp file name might get out of that limit and a ENAMETOOLONG error will happen
We started to have this issue in pnpm v5, where we have really long file names in the content-addressable storage.
Related issue: pnpm/pnpm#2605
How
Current Behavior
The temp file name is the
<target file>.<hash>
Steps to Reproduce
Write a file that has a name 1 character shorter than the accepted limit.
Expected Behavior
The temp file name is short or at least not longer than the target file name.
References
pnpm/pnpm#2605
The text was updated successfully, but these errors were encountered: