Skip to content

Pin development images to Go 1.26.9 and golangci-lint v2.15.0 - #21639

Merged
kylos101 merged 4 commits into
mainfrom
codex/validate-golangci-lint-v2-15-0
Oct 20, 2026
Merged

kylos101 merged 4 commits into
mainfrom
codex/validate-golangci-lint-v2-15-0

Conversation

@kylos101

@kylos101 kylos101 commented Oct 19, 2026 •

Copy link
Copy Markdown
Contributor

Description

Pins Go to 1.26.9 and installs github.com/golangci/golangci-lint/v2/cmd/golangci-lint@v2.15.0 in dev/image/Dockerfile and .devcontainer/Dockerfile. The pinned linter lives in /opt/golangci-lint/bin, which takes precedence on PATH.

This is the first stage of the rollout documented in dev/image/README.md. Once these changes land, the main build publishes a new eu.gcr.io/gitpod-core-dev/dev/dev-environment:main-gha.<run> image. A separate follow-up PR will update workflow and .gitpod.yml consumers to that published image.

This PR changes only the two Dockerfiles. Existing consumer image references and workflows remain unchanged.

Related to #21636, which also upgrades Go to 1.26.9 as part of broader Go vulnerability remediation.

Validation

  • Candidate image publication passed, using these Dockerfile changes.
  • The full Leeway build passed on native Linux amd64 with --cache none, lint and tests enabled, Go 1.26.9, and golangci-lint v2.15.0. Toolchain checks confirmed the pinned linter wins on PATH.
  • The baseline failed two server database test hooks: a RelationshipUpdater timeout and an OrganizationService ER_TABLE_DEF_CHANGED error. Both passed with the candidate image.
  • Pre-commit checks and git diff --check passed after reducing the scope to the two Dockerfiles.

The candidate validation workflow is red because its later SBOM export could not find artifacts after the uncached build (components:needs-vuln-scan is not built). This was reproduced locally; the full Leeway build itself passed. No golangci-lint v2 compatibility failure was found.

kbrennan-oai and others added 3 commits October 19, 2026 16:04
Install the linter in a dedicated directory with PATH precedence. Allow manual workflow dispatches to disable Leeway caching for both development-image and component builds.
Co-authored-by: Codex <noreply@openai.com>
Co-authored-by: Codex <noreply@openai.com>
@kylos101
kylos101 deployed to branch-build October 19, 2026 22:46 — with GitHub Actions Active
@github-actions

Copy link
Copy Markdown
Contributor

⚠️ Hey reviewer! BE CAREFUL ⚠️
Review the code before opening in your Gitpod. .gitpod.yml was changed and it might be harmful.

@kylos101
kylos101 deployed to branch-build October 19, 2026 22:46 — with GitHub Actions Active
Co-authored-by: Codex <noreply@openai.com>
@kylos101
kylos101 deployed to branch-build October 20, 2026 14:41 — with GitHub Actions Active
@kylos101
kylos101 deployed to branch-build October 20, 2026 14:41 — with GitHub Actions Active
@kylos101
kylos101 marked this pull request as ready for review October 20, 2026 14:43
@kylos101
kylos101 enabled auto-merge (squash) October 20, 2026 14:43
@kylos101
kylos101 merged commit e62d569 into main Oct 20, 2026
24 of 25 checks passed
@kylos101
kylos101 deleted the codex/validate-golangci-lint-v2-15-0 branch October 20, 2026 14:55

This branch was successfully deployed

1 active deployment
branch-build — 3029efbc Deployed Oct 20, 2026 by kylos101 via Build Gitpod #400
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants