(ver string)
| 1399 | } |
| 1400 | |
| 1401 | func nextPatchVersion(ver string) string { |
| 1402 | parts := strings.SplitN(ver, "-", 2) |
| 1403 | digits := strings.Split(parts[0], ".") |
| 1404 | n, _ := strconv.Atoi(digits[len(digits)-1]) |
| 1405 | digits[len(digits)-1] = strconv.Itoa(n + 1) |
| 1406 | return strings.Join(digits, ".") |
| 1407 | } |
| 1408 | |
| 1409 | func writeCompatJSON() { |
| 1410 | bs, err := os.ReadFile("compat.yaml") |