Skip to content

Commit 3791e96

Browse files
committed
use filepath tools for Windows compat
1 parent 1f9733d commit 3791e96

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/data_collector/data_collector.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,7 @@ func (c *DataCollector) WrapUp(product string) (string, error) {
162162
if err != nil {
163163
return err
164164
}
165-
header.Name = tarballRootDirName + "/" + relativePath
165+
header.Name = filepath.ToSlash(filepath.Join(tarballRootDirName, relativePath))
166166

167167
if err = tw.WriteHeader(header); err != nil {
168168
return err

0 commit comments

Comments
 (0)