diff --git a/libs/patchwheel/parse.go b/libs/patchwheel/parse.go index 51d00e0d3..7e8b7b69d 100644 --- a/libs/patchwheel/parse.go +++ b/libs/patchwheel/parse.go @@ -18,7 +18,7 @@ type WheelInfo struct { // - if there is an existing part after + it is dropped // - append + to version func calculateNewVersion(info WheelInfo, mtime time.Time) (newVersion, newFilename string) { - baseVersion := strings.SplitN(info.Version, "+", 2)[0] + baseVersion, _, _ := strings.Cut(info.Version, "+") dt := strings.Replace(mtime.Format("20060102150405.00"), ".", "", 1) dt = strings.Replace(dt, ".", "", 1)