Skip to content

Commit 1c4dfac

Browse files
kyleconroyclaude
andcommitted
Upgrade Go toolchain to 1.26.2
Bumps the Go toolchain used in CI, Docker, and documentation to 1.26.2. The go directive in go.mod remains at 1.26.0 (minimum required version); a toolchain directive is added to pin the build toolchain to go1.26.2. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
1 parent 21e4c47 commit 1c4dfac

File tree

8 files changed

+11
-9
lines changed

8 files changed

+11
-9
lines changed

.github/workflows/build.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ jobs:
1212
- uses: actions/checkout@v6
1313
- uses: actions/setup-go@v6
1414
with:
15-
go-version: '1.26.0'
15+
go-version: '1.26.2'
1616
- name: install ./...
1717
run: go build ./...
1818
env:

.github/workflows/ci-kotlin.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ jobs:
1313
- uses: actions/checkout@v6
1414
- uses: actions/setup-go@v6
1515
with:
16-
go-version: '1.26.0'
16+
go-version: '1.26.2'
1717
- name: install ./...
1818
run: go install ./...
1919
- uses: actions/checkout@v6

.github/workflows/ci-python.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ jobs:
1313
- uses: actions/checkout@v6
1414
- uses: actions/setup-go@v6
1515
with:
16-
go-version: '1.26.0'
16+
go-version: '1.26.2'
1717
- name: install ./...
1818
run: go install ./...
1919
- uses: actions/checkout@v6

.github/workflows/ci-typescript.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ jobs:
1313
- uses: actions/checkout@v6
1414
- uses: actions/setup-go@v6
1515
with:
16-
go-version: '1.26.0'
16+
go-version: '1.26.2'
1717
- name: install ./...
1818
run: go install ./...
1919
- uses: actions/checkout@v6

.github/workflows/ci.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ jobs:
1616
- uses: actions/checkout@v6
1717
- uses: actions/setup-go@v6
1818
with:
19-
go-version: '1.26.0'
19+
go-version: '1.26.2'
2020
- run: go build ./...
2121
env:
2222
CGO_ENABLED: "0"
@@ -28,7 +28,7 @@ jobs:
2828
- uses: actions/checkout@v6
2929
- uses: actions/setup-go@v6
3030
with:
31-
go-version: '1.26.0'
31+
go-version: '1.26.2'
3232

3333
- name: install gotestsum
3434
run: go install gotest.tools/gotestsum@latest

CLAUDE.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ This document provides essential information for working with the sqlc codebase,
66

77
### Prerequisites
88

9-
- **Go 1.26.0+** - Required for building and testing
9+
- **Go 1.26.2+** - Required for building and testing
1010
- **Docker & Docker Compose** - Required for integration tests with databases (local development)
1111
- **Git** - For version control
1212

@@ -147,7 +147,7 @@ make start # Start database containers
147147
### GitHub Actions Workflow
148148

149149
- **File:** `.github/workflows/ci.yml`
150-
- **Go Version:** 1.26.0
150+
- **Go Version:** 1.26.2
151151
- **Database Setup:** Uses `sqlc-test-setup` (not Docker) to install and start PostgreSQL and MySQL directly on the runner
152152
- **Test Command:** `gotestsum --junitfile junit.xml -- --tags=examples -timeout 20m ./...`
153153
- **Additional Checks:** `govulncheck` for vulnerability scanning

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# STEP 1: Build sqlc
2-
FROM golang:1.26.1 AS builder
2+
FROM golang:1.26.2 AS builder
33

44
COPY . /workspace
55
WORKDIR /workspace

go.mod

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@ module github.com/sqlc-dev/sqlc
22

33
go 1.26.0
44

5+
toolchain go1.26.2
6+
57
require (
68
github.com/antlr4-go/antlr/v4 v4.13.1
79
github.com/cubicdaiya/gonp v1.0.4

0 commit comments

Comments
 (0)