Skip to content

Commit c1ee623

Browse files
committed
Use existing additionalCacheFroms
1 parent 0b5720c commit c1ee623

File tree

7 files changed

+0
-17
lines changed

7 files changed

+0
-17
lines changed

src/spec-common/injectHeadless.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,6 @@ export interface ResolverParameters {
6262
buildxPush: boolean;
6363
buildxOutput: string | undefined;
6464
buildxCacheTo: string | undefined;
65-
buildxCacheFrom: string | undefined;
6665
skipFeatureAutoMapping: boolean;
6766
skipPostAttach: boolean;
6867
containerSessionDataFolder?: string;

src/spec-node/containerFeatures.ts

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -89,10 +89,6 @@ export async function extendImage(params: DockerResolverParameters, config: Subs
8989
params.additionalCacheFroms.forEach(cacheFrom => args.push('--cache-from', cacheFrom));
9090
}
9191

92-
if (params.buildxCacheFrom) {
93-
args.push('--cache-from', params.buildxCacheFrom);
94-
}
95-
9692
for (const buildContext in featureBuildInfo.buildKitContexts) {
9793
args.push('--build-context', `${buildContext}=${featureBuildInfo.buildKitContexts[buildContext]}`);
9894
}

src/spec-node/devContainers.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,6 @@ export interface ProvisionOptions {
5454
buildxPush: boolean;
5555
buildxOutput: string | undefined;
5656
buildxCacheTo: string | undefined;
57-
buildxCacheFrom: string | undefined;
5857
additionalFeatures?: Record<string, string | boolean | Record<string, string | boolean>>;
5958
skipFeatureAutoMapping: boolean;
6059
skipPostAttach: boolean;
@@ -145,7 +144,6 @@ export async function createDockerParams(options: ProvisionOptions, disposables:
145144
buildxPush: options.buildxPush,
146145
buildxOutput: options.buildxOutput,
147146
buildxCacheTo: options.buildxCacheTo,
148-
buildxCacheFrom: options.buildxCacheFrom,
149147
skipFeatureAutoMapping: options.skipFeatureAutoMapping,
150148
skipPostAttach: options.skipPostAttach,
151149
containerSessionDataFolder: options.containerSessionDataFolder,

src/spec-node/devContainersSpecCLI.ts

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -265,7 +265,6 @@ async function provision({
265265
buildxPush: false,
266266
buildxOutput: undefined,
267267
buildxCacheTo: addCacheTo,
268-
buildxCacheFrom: addCacheFrom,
269268
additionalFeatures,
270269
skipFeatureAutoMapping,
271270
skipPostAttach,
@@ -421,7 +420,6 @@ async function doSetUp({
421420
buildxPush: false,
422421
buildxOutput: undefined,
423422
buildxCacheTo: undefined,
424-
buildxCacheFrom: undefined,
425423
skipFeatureAutoMapping: false,
426424
skipPostAttach: false,
427425
skipPersistingCustomizationsFromFeatures: false,
@@ -847,7 +845,6 @@ async function doRunUserCommands({
847845
buildxPush: false,
848846
buildxOutput: undefined,
849847
buildxCacheTo: undefined,
850-
buildxCacheFrom: undefined,
851848
skipFeatureAutoMapping,
852849
skipPostAttach,
853850
skipPersistingCustomizationsFromFeatures: false,
@@ -1295,7 +1292,6 @@ export async function doExec({
12951292
buildxPlatform: undefined,
12961293
buildxPush: false,
12971294
buildxCacheTo: undefined,
1298-
buildxCacheFrom: undefined,
12991295
skipFeatureAutoMapping,
13001296
buildxOutput: undefined,
13011297
skipPostAttach: false,

src/spec-node/featuresCLI/testCommandImpl.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -654,7 +654,6 @@ async function generateDockerParams(workspaceFolder: string, args: FeaturesTestC
654654
buildxPush: false,
655655
buildxOutput: undefined,
656656
buildxCacheTo: undefined,
657-
buildxCacheFrom: undefined,
658657
skipFeatureAutoMapping: false,
659658
skipPostAttach: false,
660659
skipPersistingCustomizationsFromFeatures: false,

src/spec-node/singleContainer.ts

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -202,10 +202,6 @@ async function buildAndExtendImage(buildParams: DockerResolverParameters, config
202202
if (buildParams.buildxCacheTo) {
203203
args.push('--cache-to', buildParams.buildxCacheTo);
204204
}
205-
if (buildParams.buildxCacheFrom) {
206-
args.push('--cache-from', buildParams.buildxCacheFrom);
207-
}
208-
209205
args.push('--build-arg', 'BUILDKIT_INLINE_CACHE=1');
210206
} else {
211207
args.push('build');

src/spec-node/utils.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,6 @@ export interface DockerResolverParameters {
118118
buildxPush: boolean;
119119
buildxOutput: string | undefined;
120120
buildxCacheTo: string | undefined;
121-
buildxCacheFrom: string | undefined;
122121
platformInfo: PlatformInfo;
123122
}
124123

0 commit comments

Comments
 (0)