Exclude macOS metadata sidecars from remote provider archives

This commit is contained in:
Dotta committed 2026-10-10 09:14:06 -05:00
1 parent 853351c0a1
commit 1bbc019965
2 files changed
+13 -3

No files matched your search

@@ -10375,7 +10375,8 @@ export async function stageRemoteRunnerDirectory(input: {
// and transfer from disk in bounded chunks instead of buffering the archive.
await new Promise<void>((resolve, reject) => {
execFile("tar", [...excludeArgs, "-czf", archivePath, "-C", input.sourcePath, "."],
{ maxBuffer: 1024 * 1024 }, (error) => error ? reject(error) : resolve());
{ maxBuffer: 1024 * 1024, env: { ...process.env, COPYFILE_DISABLE: "1" } },
(error) => error ? reject(error) : resolve());
});
await run(`umask 077; mkdir -p ${quote(posix.dirname(remoteArchive))} && : > ${quote(remoteArchive)}`);
const digest = createHash("sha256");