diff --git a/libs/patchwheel/parse.go b/libs/patchwheel/parse.go index 7e8b7b69d..96e6834bc 100644 --- a/libs/patchwheel/parse.go +++ b/libs/patchwheel/parse.go @@ -17,10 +17,12 @@ type WheelInfo struct { // The version is updated according to the following rules: // - if there is an existing part after + it is dropped // - append + to version +// +// Example transform: "1.2.3" -> "1.2.3+2025030412345678" func calculateNewVersion(info WheelInfo, mtime time.Time) (newVersion, newFilename string) { baseVersion, _, _ := strings.Cut(info.Version, "+") - dt := strings.Replace(mtime.Format("20060102150405.00"), ".", "", 1) + dt := mtime.Format("20060102150405.00") dt = strings.Replace(dt, ".", "", 1) newVersion = baseVersion + "+" + dt