Skip to content

Commit

Permalink
fix: Fixed path separator in .tgz output artifacts created on windows.
Browse files Browse the repository at this point in the history
…Fixes argoproj#10562 (argoproj#11097)

Signed-off-by: Peter Kögel <peter.koegel@vector.com>
Signed-off-by: Dillen Padhiar <dillen_padhiar@intuit.com>
  • Loading branch information
PeterKoegel authored and dpadhiar committed May 9, 2024
1 parent 665c314 commit affe60d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion util/archive/archive.go
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ func tarDir(sourcePath string, tw *tar.Writer) error {
if err != nil {
return errors.InternalWrapError(err)
}
nameInArchive = filepath.Join(baseName, nameInArchive)
nameInArchive = filepath.ToSlash(filepath.Join(baseName, nameInArchive))
log.Debugf("writing %s", nameInArchive)
count++

Expand Down

0 comments on commit affe60d

Please sign in to comment.