From e00e8e23de28f638a80adf87a45455e149b4cfcc Mon Sep 17 00:00:00 2001 From: Martin Tournoij Date: Wed, 30 Oct 2024 13:24:17 +0000 Subject: [PATCH] Update CI to Go 1.23, remove exception for fuzzer --- .github/workflows/test.yml | 6 +++--- ossfuzz/fuzz.go | 6 ------ 2 files changed, 3 insertions(+), 9 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 4bff0cc6..f061017b 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -5,7 +5,7 @@ "test": { "strategy": { "matrix": { - "go-version": ["1.18.x", "1.22.x"], + "go-version": ["1.18.x", "1.23.x"], "os": ["ubuntu-latest", "macos-latest", "windows-latest"] } }, @@ -13,11 +13,11 @@ "env": {"GOPROXY": "direct"}, "steps": [{ "name": "Install Go", - "uses": "actions/setup-go@v3", + "uses": "actions/setup-go@v4", "with": {"go-version": "${{ matrix.go-version }}"} }, { "name": "Checkout code", - "uses": "actions/checkout@v3" + "uses": "actions/checkout@v4" }, { "name": "Test", "run": "go test -race ./..." diff --git a/ossfuzz/fuzz.go b/ossfuzz/fuzz.go index 755f82cb..6a29773d 100644 --- a/ossfuzz/fuzz.go +++ b/ossfuzz/fuzz.go @@ -3,7 +3,6 @@ package ossfuzz import ( "bytes" "fmt" - "strings" "github.com/BurntSushi/toml" ) @@ -28,11 +27,6 @@ func FuzzToml(data []byte) int { var v2 any _, err = toml.Decode(buf.String(), &v2) if err != nil { - // TODO(manunio): remove this when 1.23 lands, see #407. - if strings.Contains(err.Error(), "invalid datetime") { - return 0 - } - panic(fmt.Sprintf("failed round trip: %s", err)) }