Skip to content

Commit ecc44f2

Browse files
Bump Go toolchain to 1.26.4
Move the project from the Go 1.25 line to the latest stable Go 1.26.4. - go.mod: go directive 1.25.0 -> 1.26.0 (language floor; no toolchain directive introduced by `go mod tidy`) - Dockerfile: golang:1.25.11-alpine -> golang:1.26.4-alpine, repinned to the current index digest - .github/workflows/lint.yml: go-version 1.25 -> 1.26 (other workflows use go-version-file: go.mod and follow automatically) - .github/copilot-instructions.md: update Dockerfile reference - .golangci.yml: disable only the modernize `newexpr` analyzer; the Go 1.26 new(expr) feature otherwise flags ~1.2k github.Ptr() call sites, which is out of scope for a toolchain bump Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
1 parent 6586b84 commit ecc44f2

5 files changed

Lines changed: 12 additions & 4 deletions

File tree

.github/copilot-instructions.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ go test ./pkg/github -run TestGetMe
9494

9595
- **go.mod / go.sum:** Go module dependencies (Go 1.24.0+)
9696
- **.golangci.yml:** Linter configuration (v2 format, ~15 linters enabled)
97-
- **Dockerfile:** Multi-stage build (golang:1.25.8-alpine → distroless)
97+
- **Dockerfile:** Multi-stage build (golang:1.26.4-alpine → distroless)
9898
- **server.json:** MCP server metadata for registry
9999
- **.goreleaser.yaml:** Release automation config
100100
- **.gitignore:** Excludes bin/, dist/, vendor/, *.DS_Store, github-mcp-server binary

.github/workflows/lint.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ jobs:
1818
uses: ./.github/actions/build-ui
1919
- uses: actions/setup-go@v6
2020
with:
21-
go-version: '1.25'
21+
go-version: '1.26'
2222
- name: golangci-lint
2323
uses: golangci/golangci-lint-action@v9
2424
with:

.golangci.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,14 @@ linters:
3535
- revive
3636
text: "var-naming: avoid package names that conflict with Go standard library package names"
3737
settings:
38+
modernize:
39+
# The newexpr modernizer rewrites pointer-helpers such as github.Ptr(x)
40+
# into the Go 1.26 new(expr) builtin. Adopting it touches ~1.2k call sites
41+
# across the codebase, which is out of scope for a toolchain bump. Disable
42+
# it here so the rest of the modernize suite stays active; adopting
43+
# new(expr) can be done as a separate, focused change.
44+
disable:
45+
- newexpr
3846
staticcheck:
3947
checks:
4048
- "all"

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ COPY ui/ ./ui/
77
RUN mkdir -p ./pkg/github/ui_dist && \
88
cd ui && npm run build
99

10-
FROM golang:1.25.11-alpine@sha256:8d95af53d0d58e1759ddb4028285d9b1239067e4fbf4f544618cad0f60fbc354 AS build
10+
FROM golang:1.26.4-alpine@sha256:f1ddd9fe14fffc091dd98cb4bfa999f32c5fc77d2f2305ea9f0e2595c5437c14 AS build
1111
ARG VERSION="dev"
1212

1313
# Set the working directory

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
module github.com/github/github-mcp-server
22

3-
go 1.25.0
3+
go 1.26.0
44

55
require (
66
github.com/go-chi/chi/v5 v5.3.0

0 commit comments

Comments
 (0)