Skip to content

Commit f408143

Browse files
committed
switched to filepath
1 parent 3f86ef5 commit f408143

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

libs/patchwheel/parse.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ package patchwheel
22

33
import (
44
"fmt"
5-
"path"
5+
"path/filepath"
66
"strconv"
77
"strings"
88
"time"
@@ -40,7 +40,7 @@ func calculateNewVersion(info WheelInfo, mtime time.Time) (newVersion, newFilena
4040
// The function does not try hard to validate if the format is correct, it tries to parse whatever is available.
4141
// However, it does require 5 or 6 components in the filename.
4242
func ParseWheelFilename(filename string) (WheelInfo, error) {
43-
filename = path.Base(filename)
43+
filename = filepath.Base(filename)
4444
parts := strings.Split(filename, "-")
4545
if len(parts) < 5 {
4646
return WheelInfo{}, fmt.Errorf("invalid wheel filename format: not enough parts in %s", filename)

0 commit comments

Comments
 (0)