Skip to content

chore(build): build with Go 1.27.3 and golangci-lint v2.15.0 - #322

Merged
joschi merged 1 commit into
mainfrom
321-go-1.27.3
Oct 21, 2026
Merged

joschi merged 1 commit into
mainfrom
321-go-1.27.3

Conversation

@joschi

@joschi joschi commented Oct 21, 2026

Copy link
Copy Markdown
Contributor

Fixes #321

Changes

  • Set toolchain go1.27.3 in go.mod. CI and the release workflows read the Go version from go.mod.
  • Use Go 1.27 in the Nix dev shells (flake.nix, shell.nix) and in the Nix package (buildGo127Module).
  • Update nixpkgs in flake.lock. The old revision has only Go 1.27.2.
  • Upgrade golangci-lint from v1.64.8 to v2.15.0, and migrate .golangci.yml to the v2 format.

v2 adds the stylecheck (ST*) and quick-fix (QF*) checks to staticcheck. These checks find 15 new issues. This PR keeps the v1 checks (SA*, S1*), so the linter reports the same issues as before. A different PR can enable the new checks.

Tests

  • make build, make lint, and the unit and integration tests pass.
  • nix develop and nix build .#dash0 use go1.27.3.
  • The E2E tests fail on my computer with archive/tar: sockets not supported. They also fail on main. This PR does not cause the failure.

- Set the Go toolchain to go1.27.3 in go.mod. CI reads it from go.mod.
- Use Go 1.27 in the Nix dev shells and the Nix package.
- Update nixpkgs in flake.lock. The old revision has only Go 1.27.2.
- Upgrade golangci-lint from v1.64.8 to v2.15.0.
- Migrate .golangci.yml to the v2 format. Keep the v1 staticcheck
  checks (SA*, S1*), so the linter reports the same issues as before.
@joschi
joschi requested a review from a team as a code owner October 21, 2026 10:33
@joschi joschi self-assigned this Oct 21, 2026
@joschi
joschi enabled auto-merge (squash) October 21, 2026 10:53
@joschi
joschi merged commit 36cb817 into main Oct 21, 2026
107 checks passed
@joschi
joschi deleted the 321-go-1.27.3 branch October 21, 2026 20:10
@github-actions github-actions Bot locked and limited conversation to collaborators Oct 21, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Build with Go 1.27.3 and the latest golangci-lint

2 participants