diff --git a/.github/copilot-instructions.md b/.github/copilot-instructions.md index 975df2a633..11e5a9ce81 100644 --- a/.github/copilot-instructions.md +++ b/.github/copilot-instructions.md @@ -94,7 +94,7 @@ go test ./pkg/github -run TestGetMe - **go.mod / go.sum:** Go module dependencies (Go 1.24.0+) - **.golangci.yml:** Linter configuration (v2 format, ~15 linters enabled) -- **Dockerfile:** Multi-stage build (golang:1.25.8-alpine → distroless) +- **Dockerfile:** Multi-stage build (golang:1.26.4-alpine → distroless) - **server.json:** MCP server metadata for registry - **.goreleaser.yaml:** Release automation config - **.gitignore:** Excludes bin/, dist/, vendor/, *.DS_Store, github-mcp-server binary diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index 5b912cea0f..a3c2196041 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -18,7 +18,7 @@ jobs: uses: ./.github/actions/build-ui - uses: actions/setup-go@v6 with: - go-version: '1.25' + go-version: '1.26' - name: golangci-lint uses: golangci/golangci-lint-action@v9 with: diff --git a/.golangci.yml b/.golangci.yml index a32fc897e8..f71cacfb85 100644 --- a/.golangci.yml +++ b/.golangci.yml @@ -35,6 +35,14 @@ linters: - revive text: "var-naming: avoid package names that conflict with Go standard library package names" settings: + modernize: + # The newexpr modernizer rewrites pointer-helpers such as github.Ptr(x) + # into the Go 1.26 new(expr) builtin. Adopting it touches ~1.2k call sites + # across the codebase, which is out of scope for a toolchain bump. Disable + # it here so the rest of the modernize suite stays active; adopting + # new(expr) can be done as a separate, focused change. + disable: + - newexpr staticcheck: checks: - "all" diff --git a/Dockerfile b/Dockerfile index 132752fde4..a442a96c12 100644 --- a/Dockerfile +++ b/Dockerfile @@ -7,7 +7,7 @@ COPY ui/ ./ui/ RUN mkdir -p ./pkg/github/ui_dist && \ cd ui && npm run build -FROM golang:1.25.11-alpine@sha256:8d95af53d0d58e1759ddb4028285d9b1239067e4fbf4f544618cad0f60fbc354 AS build +FROM golang:1.26.4-alpine@sha256:f1ddd9fe14fffc091dd98cb4bfa999f32c5fc77d2f2305ea9f0e2595c5437c14 AS build ARG VERSION="dev" # Set the working directory diff --git a/go.mod b/go.mod index 080cdcfd8e..e625a52594 100644 --- a/go.mod +++ b/go.mod @@ -1,6 +1,6 @@ module github.com/github/github-mcp-server -go 1.25.0 +go 1.26.0 require ( github.com/go-chi/chi/v5 v5.3.0