Skip to content

Commit 18220a9

Browse files
committed
disable parallel layer caching (root only)
1 parent f4c9939 commit 18220a9

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

src/LayerCache.ts

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -30,11 +30,11 @@ class LayerCache {
3030
async store(key: string) {
3131
this.originalKeyToStore = key
3232
await this.saveImageAsUnpacked()
33-
await this.separateAllLayerCaches()
33+
// await this.separateAllLayerCaches()
3434
// Todo: remove await
3535
const storeRoot = await this.storeRoot()
36-
const storeLayers = this.storeLayers()
37-
await Promise.all([storeRoot, storeLayers])
36+
// const storeLayers = this.storeLayers()
37+
// await Promise.all([storeRoot, storeLayers])
3838
}
3939

4040
private async saveImageAsUnpacked() {
@@ -108,12 +108,12 @@ class LayerCache {
108108
return false
109109
}
110110

111-
const hasRestoredAllLayers = await this.restoreLayers()
112-
if (!hasRestoredAllLayers) {
113-
core.info(`Some layer cache could not be found. aborting.`)
114-
return false
115-
}
116-
await this.joinAllLayerCaches()
111+
// const hasRestoredAllLayers = await this.restoreLayers()
112+
// if (!hasRestoredAllLayers) {
113+
// core.info(`Some layer cache could not be found. aborting.`)
114+
// return false
115+
// }
116+
// await this.joinAllLayerCaches()
117117
await this.loadImageFromUnpacked()
118118
return true
119119
}

0 commit comments

Comments
 (0)