Skip to content

Commit

Permalink
Sprintf, instead of using filepath.Join, to see whether fixes wcow fa…
Browse files Browse the repository at this point in the history
…ilure

Signed-off-by: David Freilich <david.freilich@appsflyer.com>
  • Loading branch information
dfreilich committed Feb 1, 2022
1 parent 5f377e6 commit 0831980
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions internal/builder/builder.go
Original file line number Diff line number Diff line change
Expand Up @@ -425,11 +425,7 @@ func addBuildpacks(logger logging.Logger, tmpDir string, image imgutil.Image, ad
}

deletedMaps := map[string][]byte{
filepath.Join(
buildpacksDir,
strings.ReplaceAll(bpInfo.ID, "/", "_"),
".wh."+bpInfo.Version,
): {},
fmt.Sprintf("$s/%s/.wh.%s", buildpacksDir, strings.ReplaceAll(bpInfo.ID, "/", "_"), bpInfo.Version): {},
}
whiteoutsTarFile := filepath.Join(bpWhiteoutsTmpDir, "whiteouts.tar")

Expand Down

0 comments on commit 0831980

Please sign in to comment.