From 1ef15a9bd82402f58f864f0ee5e59ff09f827dce Mon Sep 17 00:00:00 2001 From: Omer Lachish Date: Mon, 10 Aug 2026 14:20:41 +0000 Subject: [PATCH 1/2] raise minimum Go version to 1.25 Signed-off-by: Omer Lachish --- .github/workflows/push.yml | 1 - AGENTS.md | 6 +++--- NEXT_CHANGELOG.md | 2 ++ README.md | 2 +- examples/slog/go.mod | 2 +- examples/zerolog/go.mod | 2 +- go.mod | 2 +- 7 files changed, 9 insertions(+), 8 deletions(-) diff --git a/.github/workflows/push.yml b/.github/workflows/push.yml index 526cfd568..15faa6ad2 100644 --- a/.github/workflows/push.yml +++ b/.github/workflows/push.yml @@ -28,7 +28,6 @@ jobs: fail-fast: false matrix: goVersion: - - "1.24" - "1.25" - "1.26" steps: diff --git a/AGENTS.md b/AGENTS.md index 109b82226..8a6dc2088 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -19,7 +19,7 @@ For scoped coding rules, skills, and prompt templates, see the `.agent/` directo ## Development -Prerequisites: Go 1.24+ (see `go.mod`), `goimports`, `staticcheck`, `gotestsum`. +Prerequisites: Go 1.25+ (see `go.mod`), `goimports`, `staticcheck`, `gotestsum`. ```bash make build # go build ./... @@ -32,8 +32,8 @@ make coverage # View HTML coverage report make codegen # Regenerate service/ from OpenAPI specs ``` -CI runs `make test` across Go 1.24, 1.25, and 1.26; lint and fmt run on Go 1.26. -Code must compile on all CI versions — do not use stdlib APIs newer than Go 1.24 +CI runs `make test` across Go 1.25 and 1.26; lint and fmt run on Go 1.26. +Code must compile on all CI versions — do not use stdlib APIs newer than Go 1.25 (the module's minimum version in `go.mod`) without a local shim. ## Architecture diff --git a/NEXT_CHANGELOG.md b/NEXT_CHANGELOG.md index c52f127d1..b373f774a 100644 --- a/NEXT_CHANGELOG.md +++ b/NEXT_CHANGELOG.md @@ -4,6 +4,8 @@ ### Breaking Changes + * Raise the minimum supported Go version from 1.24 to 1.25 + ### New Features and Improvements ### Bug Fixes diff --git a/README.md b/README.md index 30f3a10b3..f26ee44bf 100644 --- a/README.md +++ b/README.md @@ -66,7 +66,7 @@ The Databricks SDK for Go includes functionality to accelerate development with ```go module sample - go 1.24 + go 1.25 require github.com/databricks/databricks-sdk-go v0.9.0 diff --git a/examples/slog/go.mod b/examples/slog/go.mod index f0858830b..6d4b76bc7 100644 --- a/examples/slog/go.mod +++ b/examples/slog/go.mod @@ -1,6 +1,6 @@ module main -go 1.24.0 +go 1.25.0 replace github.com/databricks/databricks-sdk-go v0.0.0 => ../.. diff --git a/examples/zerolog/go.mod b/examples/zerolog/go.mod index 4cd267eac..5e37fe73d 100644 --- a/examples/zerolog/go.mod +++ b/examples/zerolog/go.mod @@ -1,6 +1,6 @@ module main -go 1.24.0 +go 1.25.0 replace github.com/databricks/databricks-sdk-go v0.0.0 => ../.. diff --git a/go.mod b/go.mod index 671d4a149..7c7174b94 100644 --- a/go.mod +++ b/go.mod @@ -1,6 +1,6 @@ module github.com/databricks/databricks-sdk-go -go 1.24.0 +go 1.25.0 require ( github.com/google/go-cmp v0.7.0 From 1fcea2be2cd2c880cac072653c7bb70b5567da7b Mon Sep 17 00:00:00 2001 From: Omer Lachish Date: Thu, 13 Aug 2026 11:15:12 +0000 Subject: [PATCH 2/2] set up Go for CodeQL analysis Signed-off-by: Omer Lachish --- .github/workflows/codeql.yml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.github/workflows/codeql.yml b/.github/workflows/codeql.yml index 8dcae23e7..ae7988511 100644 --- a/.github/workflows/codeql.yml +++ b/.github/workflows/codeql.yml @@ -29,6 +29,11 @@ jobs: - name: Checkout repository uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 + - name: Setup Go + uses: actions/setup-go@40f1582b2485089dde7abd97c1529aa768e1baff # v5.6.0 + with: + go-version-file: go.mod + # Initializes the CodeQL tools for scanning. - name: Initialize CodeQL uses: github/codeql-action/init@ebcb5b36ded6beda4ceefea6a8bc4cc885255bb3 # v3.34.1