File tree Expand file tree Collapse file tree 1 file changed +2
-3
lines changed
packages/@aws-cdk/toolkit-lib/lib/toolkit/private Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change 11
22import type { SdkProvider } from '../../api/aws-auth/private' ;
3- import type { ICloudAssemblySource } from '../../api/cloud-assembly' ;
3+ import { CachedCloudAssembly , type ICloudAssemblySource } from '../../api/cloud-assembly' ;
44import { StackAssembly } from '../../api/cloud-assembly/private' ;
55import type { IoHelper } from '../../api/io/private' ;
66import type { PluginHost } from '../../api/plugin' ;
@@ -30,8 +30,7 @@ export async function assemblyFromSource(ioHelper: IoHelper, assemblySource: ICl
3030 }
3131
3232 if ( cache ) {
33- const ret = new StackAssembly ( await assemblySource . produce ( ) , ioHelper ) ;
34- return ret ;
33+ return new StackAssembly ( new CachedCloudAssembly ( await assemblySource . produce ( ) ) , ioHelper ) ;
3534 }
3635
3736 return new StackAssembly ( await assemblySource . produce ( ) , ioHelper ) ;
You can’t perform that action at this time.
0 commit comments