Skip to content

Commit

Permalink
Merge pull request #35 from vmware-labs/windows-wrap
Browse files Browse the repository at this point in the history
Enforce forward slashes on tgz to properly support Windows
  • Loading branch information
mpermar authored Jan 16, 2024
2 parents 5017ab1 + 7fc3db9 commit 61a11d5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/utils/tar.go
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ func TarContext(parentCtx context.Context, sourceDir string, filename string, cf
if skip(trimmedPath) {
return nil
}
relPath := filepath.Join(prefix, trimmedPath)
relPath := filepath.ToSlash(filepath.Join(prefix, trimmedPath))

return tarFile(tarWriter, path, relPath, info)
}
Expand Down

0 comments on commit 61a11d5

Please sign in to comment.