feat: recover interrupted installation preparation safely
This commit is contained in:
@@ -18,7 +18,8 @@ test('source builds load local images from the isolated checkout without publica
|
||||
assert.ok(!args.includes('--push'));
|
||||
assert.ok(!args.includes('--secret'));
|
||||
assert.deepEqual(args.filter((_, index) => args[index - 1] === '--build-arg'), [`IMAGE_VERSION=${version}`]);
|
||||
writeFileSync(args[args.indexOf('--iidfile') + 1], `sha256:${'a'.repeat(64)}`);
|
||||
// Containerd may expose the manifest as local Id while Buildx writes its config digest.
|
||||
writeFileSync(args[args.indexOf('--iidfile') + 1], `sha256:${'b'.repeat(64)}`);
|
||||
return '';
|
||||
}
|
||||
return JSON.stringify({ Id: `sha256:${'a'.repeat(64)}`, Os: 'linux', Architecture: 'amd64', Config: { Labels: { 'org.opencontainers.image.revision': revision, 'org.opencontainers.image.version': version } } });
|
||||
|
||||
Reference in New Issue
Block a user