Skip to content

Commit

Permalink
fix: add --hard-dereference and --sort flags to tar
Browse files Browse the repository at this point in the history
  • Loading branch information
Dominic Scheirlinck authored and dominics committed Jan 12, 2022
1 parent bb90301 commit 21e5793
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/commands/upload.ts
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ locally cached
log(`Uploading ${count(files, 'path')} as ${args.output}`, files);

const tarBin = await tar();
const tarArgs = ['-c', '--null', '--files-from', '-'];
const tarArgs = ['-c', '--sort=name', '--hard-dereference', '--null', '--files-from', '-'];
const allArgs: string[] = ['-o', 'pipefail', ';', tarBin, ...tarArgs, '|', ...(await deflateCmd(artifact))];
const input = `${files.join('\x00')}\x00`;

Expand Down

0 comments on commit 21e5793

Please sign in to comment.