Skip to content

Commit

Permalink
Merge pull request #2165 from buildpacks/fix/extensions-docker-25
Browse files Browse the repository at this point in the history
Fix #2164
  • Loading branch information
natalieparellano authored May 23, 2024
2 parents 4917cee + 113ba0c commit f56bca5
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion pkg/client/build.go
Original file line number Diff line number Diff line change
Expand Up @@ -715,7 +715,10 @@ func (c *Client) Build(ctx context.Context, opts BuildOptions) error {
if header, err = advanceTarToEntryWithName(tarReader, lifecycleLayerName); err != nil {
return "", err
}
lifecycleLayerTar := filepath.Join(filepath.Dir(lifecycleImageTar), filepath.Dir(lifecycleLayerName)+".tar")
lifecycleLayerTar := filepath.Join(filepath.Dir(lifecycleImageTar), filepath.Dir(lifecycleLayerName)+".tar") // this will be either <s0m3d1g3st>/layer.tar (docker < 25.x) OR blobs/sha256.tar (docker 25.x and later OR containerd storage enabled)
if err = os.MkdirAll(filepath.Dir(lifecycleLayerTar), 0755); err != nil {
return "", err
}
lifecycleLayerWriter, err := os.OpenFile(lifecycleLayerTar, os.O_CREATE|os.O_RDWR, os.FileMode(header.Mode))
if err != nil {
return "", err
Expand Down

0 comments on commit f56bca5

Please sign in to comment.