Skip to content

Commit

Permalink
replace filepath.Join with path.Join
Browse files Browse the repository at this point in the history
Signed-off-by: knqyf263 <[email protected]>
  • Loading branch information
knqyf263 committed Nov 16, 2023
1 parent c97db5d commit 4714da6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg/package.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import (
"encoding/binary"
"encoding/hex"
"fmt"
"path/filepath"
"path"
"strings"
"time"

Expand Down Expand Up @@ -401,7 +401,7 @@ func (p *PackageInfo) InstalledFileNames() ([]string, error) {
var filePaths []string
for i, baseName := range p.BaseNames {
dir := p.DirNames[p.DirIndexes[i]]
filePaths = append(filePaths, filepath.Join(dir, baseName))
filePaths = append(filePaths, path.Join(dir, baseName)) // should be slash-separated
}
return filePaths, nil
}
Expand Down

0 comments on commit 4714da6

Please sign in to comment.