| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
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>
There was a problem hiding this comment.
Updates this repository’s Go version baseline and tooling configuration to move from the Go 1.25 line to Go 1.26, and updates build/CI pins accordingly.
Changes:
| File | Description |
|---|---|
| go.mod | Raises the module’s Go language version floor to 1.26.0. |
| Dockerfile | Updates the builder image to Go 1.26.4 (digest pinned). |
| .golangci.yml | Disables only modernize’s newexpr analyzer while keeping modernize enabled. |
| .github/workflows/lint.yml | Updates the lint workflow’s Go version selection for Go 1.26. |
| .github/copilot-instructions.md | Updates contributor guidance to reference the new Docker Go version. |
Sorry, something went wrong.
| module github.com/github/github-mcp-server | ||
|
|
||
| go 1.25.0 | ||
| go 1.26.0 | ||
|
|
| - uses: actions/setup-go@v6 | ||
| with: | ||
| go-version: '1.25' | ||
| go-version: '1.26' | ||
| - name: golangci-lint |
| - **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) |
There was a problem hiding this comment.
Merge
Sorry, something went wrong.
| Back | FazBrowse Home | New Git URL |
Summary
Moves the project from the Go 1.25 line to the latest stable Go 1.26.4. This is a deliberate minor-version bump, so it gets its own PR with full CI rather than an admin/digest-only update.
Pins changed
Notes:
New Go 1.26 lint finding — and why it's scoped out
Bumping go.mod to 1.26 enables the modernize newexpr modernizer (the new new(expr) builtin). golangci-lint's max-same-issues: 3 made it look like only 11 findings, but it actually flags ~1,176 github.Ptr(...) → new(...) rewrites across 33 files. That's a sweeping, unrelated refactor — out of scope for a toolchain bump.
Rather than churn the whole codebase or blanket-disable a linter, I disabled only the newexpr analyzer in .golangci.yml (all other modernize checks stay active). Adopting new(expr) can be done later as a separate, focused change. Flagging for maintainer review in case you'd prefer the wholesale adoption instead.
No other new go vet / staticcheck / golangci-lint findings appeared.
Validation
Please let full CI validate — do not force-merge.