Skip to content

Commit

Permalink
fix(util): Do not use filepath.Separator in the zip file
Browse files Browse the repository at this point in the history
Reverts #110
  • Loading branch information
pan93412 committed Sep 10, 2024
1 parent 6bd50cb commit 2eaf61c
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions internal/util/pack.go
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ func PackZipWithoutGitIgnoreFiles() ([]byte, error) {
header.Name = filepath.ToSlash(header.Name)

if info.IsDir() {
header.Name += string(filepath.Separator)
header.Name += "/"
} else {
header.Method = zip.Deflate
}
Expand All @@ -101,7 +101,6 @@ func PackZipWithoutGitIgnoreFiles() ([]byte, error) {

return nil
})

if err != nil {
return nil, err
}
Expand Down

0 comments on commit 2eaf61c

Please sign in to comment.