File tree Expand file tree Collapse file tree 1 file changed +7
-4
lines changed
Expand file tree Collapse file tree 1 file changed +7
-4
lines changed Original file line number Diff line number Diff line change @@ -198,20 +198,23 @@ class LayerCache {
198198 }
199199
200200 getUnpackedTarDir ( ) : string {
201- return `${ this . getImagesDir ( ) } /${ this . getIdhashesPathFriendly ( ) } `
201+ return path . resolve ( `${ this . getImagesDir ( ) } /${ this . getCurrentTarStoreDir ( ) } ` )
202202 }
203203
204204 getLayerCachesDir ( ) {
205205 return `${ this . getUnpackedTarDir ( ) } -layers`
206206 }
207207
208208 getSavedImageTarDir ( ) : string {
209- return `${ this . getImagesDir ( ) } /${ this . getIdhashesPathFriendly ( ) } `
209+ return path . resolve ( `${ this . getImagesDir ( ) } /${ this . getCurrentTarStoreDir ( ) } ` )
210+ }
211+
212+ getCurrentTarStoreDir ( ) : string {
213+ return 'image'
210214 }
211215
212216 getIdhashesPathFriendly ( ) : string {
213- return ''
214- // return crypto.createHash(`sha256`).update(this.ids.join(`-`), `utf8`).digest(`hex`)
217+ return crypto . createHash ( `sha256` ) . update ( this . ids . join ( `-` ) , `utf8` ) . digest ( `hex` )
215218 }
216219
217220 getRootKey ( ) : string {
You can’t perform that action at this time.
0 commit comments