Skip to content

Commit

Permalink
WIP - adding logging
Browse files Browse the repository at this point in the history
Signed-off-by: Juan Bustamante <jbustamante@vmware.com>
  • Loading branch information
jjbustamante committed Jun 9, 2023
1 parent e3680db commit 97e1fda
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/buildpack/buildpack.go
Original file line number Diff line number Diff line change
Expand Up @@ -461,7 +461,7 @@ func mustBeSplit(hdr *tar.Header, desc Descriptor, logger logging.Logger) bool {
if hdr.Typeflag == tar.TypeDir {
logger.Debugf("header %s is a directory", hdr.Name)
rootFolder := filepath.Join(dist.BuildpacksDir, desc.EscapedID())
if strings.HasPrefix(hdr.Name, rootFolder) {
if strings.Contains(rootFolder, hdr.Name) {
if path.Dir(hdr.Name) != dist.BuildpacksDir {
versionFolder := filepath.Join(rootFolder, desc.Info().Version)
logger.Debugf("checking if %s has prefix version folder %s", hdr.Name, versionFolder)
Expand Down

0 comments on commit 97e1fda

Please sign in to comment.