Skip to content

Commit 835c0f5

Browse files
committed
ignore existing archive and remvoe timestamps from git
1 parent 8bab19b commit 835c0f5

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
lines changed
1.4 KB
Binary file not shown.

internal/examples/src/convert.ts

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -446,7 +446,13 @@ export async function convertE2EToExample(config: ConvertE2EToExampleConfig) {
446446
using _ = defer(() => console.groupEnd());
447447

448448
const [, waitForExit] = await spawn(
449-
{ cwd: path.join(__project, 'examples') },
449+
{
450+
cwd: path.join(__project, 'examples'),
451+
env: {
452+
// remove timestamps from gzip
453+
GZIP: '-n',
454+
},
455+
},
450456
'tar',
451457
// consistent sort of files (by default tar sorts files by order of the filesystem)
452458
'--sort=name',
@@ -455,6 +461,8 @@ export async function convertE2EToExample(config: ConvertE2EToExampleConfig) {
455461
'-czf',
456462
`${config.e2e}.tar.gz`,
457463
`--exclude=${config.e2e}/node_modules`,
464+
// ignore existing example archive
465+
`--exclude=${config.e2e}/example.tar.gz`,
458466
config.e2e,
459467
);
460468
await waitForExit;

0 commit comments

Comments
 (0)