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
Starting with Deno 1.25.4, we are seeing file permissions not being preserved when a file is copied on MacOS. A simple reproducible example is as follows:
// Clean test filestry{Deno.removeSync("start.txt");}catch{}try{Deno.removeSync("finish.txt");}catch{}// Write a test file with execute permissionsconsole.log("Writing File");Deno.writeTextFileSync('start.txt',"Hello World");Deno.chmodSync("start.txt",0o100755);// Log the starting permissionsconststatStart=Deno.statSync("start.txt");console.log(`[${statStart.mode}] start.txt`);// Copy the fileDeno.copyFileSync('start.txt','finish.txt')// Log the copied file permissionsconststatFinish=Deno.statSync("finish.txt");console.log(`[${statFinish.mode}] finish.txt`);
This causes us issues in particular as the execute permission for some files are being lost when copied, causing downstream permission errors when those copies are attempted to be executed.
Seems potentially related to #15873 and the MacOS specific file copy performance improvement.
The text was updated successfully, but these errors were encountered:
Starting with Deno 1.25.4, we are seeing file permissions not being preserved when a file is copied on MacOS. A simple reproducible example is as follows:
This causes us issues in particular as the execute permission for some files are being lost when copied, causing downstream permission errors when those copies are attempted to be executed.
Seems potentially related to #15873 and the MacOS specific file copy performance improvement.
The text was updated successfully, but these errors were encountered: