From 81eb72ab031675b3558ccae111b5c05dd254306f Mon Sep 17 00:00:00 2001 From: Orestis Floros Date: Fri, 27 Oct 2023 22:34:32 +0200 Subject: [PATCH] go: Create section for go 1.20 (#402) If I understand correctly, auto-version has stopped working for 1.20 versions because of 1.21. --- go.hcl | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) diff --git a/go.hcl b/go.hcl index a02e1082..fb2de04d 100644 --- a/go.hcl +++ b/go.hcl @@ -68,9 +68,20 @@ version "1.19" "1.19.1" "1.19.2" "1.19.3" "1.19.4" "1.19.5" "1.19.6" "1.19.7" "1 } } +version "1.20" "1.20.1" "1.20.2" "1.20.3" "1.20.4" "1.20.5" "1.20.6" "1.20.7" "1.20.8" + "1.20.9" "1.20.10" { + auto-version { + version-pattern = "go([^\\s]+)" + + html { + url = "https://go.dev/dl/" + xpath = "//span[starts-with(., 'go1.20')]" + } + } +} + // All other versions -version "1.20" "1.20.1" "1.20.2" "1.20.3" "1.20.4" "1.20.5" "1.20.6" "1.20.7" "1.21.0" - "1.21.1" "1.21.2" "1.21.3" { +version "1.21.0" "1.21.1" "1.21.2" "1.21.3" { auto-version { version-pattern = "go([^\\s]+)"