Skip to content

Commit d02761a

Browse files
committed
debug getFormattedOriginalCacheKey
1 parent c801b57 commit d02761a

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

src/LayerCache.ts

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -232,10 +232,11 @@ class LayerCache {
232232
return `layer-${singleLayerStoreKey}`
233233
}
234234

235-
getFormattedOriginalCacheKey(hash?: string) {
236-
return format(this.originalKeyThatMayUnformatted, {
237-
hash: hash !== undefined ? hash : this.getIdhashesPathFriendly()
238-
})
235+
getFormattedOriginalCacheKey(hashThatMayBeSpecified?: string) {
236+
const hash = hashThatMayBeSpecified || this.getIdhashesPathFriendly()
237+
const result = format(this.originalKeyThatMayUnformatted, { hash })
238+
core.debug(JSON.stringify({ log: `getFormattedOriginalCacheKey`, hash, hashThatMayBeSpecified, result }))
239+
return result
239240
}
240241

241242
async getLayerTarFiles(): Promise<string[]> {

0 commit comments

Comments
 (0)