Skip to content

chore: upgrade Go to 1.26#421

Merged
flemzord merged 1 commit intomainfrom
chore/upgrade-go
Mar 20, 2026
Merged

chore: upgrade Go to 1.26#421
flemzord merged 1 commit intomainfrom
chore/upgrade-go

Conversation

@sylr
Copy link
Copy Markdown
Contributor

@sylr sylr commented Mar 11, 2026

Summary

  • Upgrade Go toolchain to 1.26 in nix dev shell
  • Update nix flake lock file

🤖 Generated with Claude Code

@coderabbitai
Copy link
Copy Markdown
Contributor

coderabbitai bot commented Mar 11, 2026

Walkthrough

Updated flake.nix metadata and development environment to use Go 1.26 instead of Go 1.25 by modifying the flake description and replacing the Go package version in the stable packages list.

Changes

Cohort / File(s) Summary
Dependency Update
flake.nix
Updated Go toolchain from version 1.25 to 1.26 in both the flake description metadata and the development shell packages configuration.

Estimated code review effort

🎯 1 (Trivial) | ⏱️ ~2 minutes

Poem

🐰 Hop, hop, hooray! Go's version's grown,
From one-two-five to one-two-six, well known,
The flake.nix now speaks of newer ways,
A simple change to brighten coding days!

🚥 Pre-merge checks | ✅ 3
✅ Passed checks (3 passed)
Check name Status Explanation
Title check ✅ Passed The title 'chore: upgrade Go to 1.26' directly and clearly summarizes the main change in the changeset, which updates Go from 1.25 to 1.26 in the flake.nix file.
Description check ✅ Passed The description is related to the changeset, mentioning the upgrade of Go toolchain to 1.26 in the nix dev shell and the flake lock file update, which matches the actual changes made.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch chore/upgrade-go
📝 Coding Plan
  • Generate coding plan for human review comments

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@sylr sylr force-pushed the chore/upgrade-go branch from e16f532 to aee89e8 Compare March 20, 2026 10:07
@sylr sylr marked this pull request as ready for review March 20, 2026 10:13
@sylr sylr requested a review from a team as a code owner March 20, 2026 10:13
Copy link
Copy Markdown
Contributor

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 1

🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.

Inline comments:
In `@flake.nix`:
- Line 46: Update the Go module directives and toolchain pins from 1.25 to 1.26
in the three modules so they match flake.nix: change the "go" directive to 1.26
in go.mod (root), tools/kubectl-stacks/go.mod, and tools/utils/go.mod and update
any toolchain/version pins or CI/tooling references that still target 1.25 to
1.26; after updating each module run a go mod tidy (or equivalent) to refresh
go.sum and ensure consistency.
🪄 Autofix (Beta)

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro

Run ID: 3689e97c-2795-41f3-8044-e9a75a7fd8bb

📥 Commits

Reviewing files that changed from the base of the PR and between cc5eb07 and aee89e8.

⛔ Files ignored due to path filters (1)
  • flake.lock is excluded by !**/*.lock, !**/*.lock
📒 Files selected for processing (1)
  • flake.nix

earthly
ginkgo
go_1_25
go_1_26
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ Potential issue | 🟠 Major

🧩 Analysis chain

🏁 Script executed:

#!/bin/bash
# Description: Find all references to Go versions in the codebase

# Search for go.mod files and their Go version directives
echo "=== go.mod files ==="
fd -e mod -x cat {} \; -x echo "File: {}"

# Search for Go version references in CI configs and Dockerfiles
echo -e "\n=== CI and Docker configs ==="
rg -n -C2 '1\.(25|26)' --glob '*.{yml,yaml}' --glob 'Dockerfile*' --glob 'go.mod'

# Search for other potential Go version references
echo -e "\n=== Other Go version references ==="
rg -n -C2 'go.*(1\.2[56]|version)' --type yaml --type dockerfile

Repository: formancehq/operator

Length of output: 12818


🏁 Script executed:

#!/bin/bash
# Find CI and Docker files more carefully
echo "=== GitHub Actions workflows ==="
find . -path '*/.github/workflows/*' -type f 2>/dev/null | head -20

echo -e "\n=== GitLab CI files ==="
find . -name '.gitlab-ci.yml' -o -name '.gitlab-ci.yaml' 2>/dev/null

echo -e "\n=== Dockerfiles ==="
find . -name 'Dockerfile*' -type f 2>/dev/null | head -20

echo -e "\n=== All go.mod files and their Go versions ==="
find . -name 'go.mod' -type f 2>/dev/null | while read f; do
  echo "File: $f"
  grep "^go " "$f" | head -1
done

echo -e "\n=== Check flake.nix Go version ==="
grep -n "go_1_" flake.nix 2>/dev/null || grep -n "go.*1\\.2[56]" flake.nix

Repository: formancehq/operator

Length of output: 414


🏁 Script executed:

#!/bin/bash
echo "=== main.yml ==="
cat ./.github/workflows/main.yml | grep -A 3 -B 3 "go-version\|go.*1\\.2[56]" || echo "No matching lines found"

echo -e "\n=== releases.yml ==="
cat ./.github/workflows/releases.yml | grep -A 3 -B 3 "go-version\|go.*1\\.2[56]" || echo "No matching lines found"

Repository: formancehq/operator

Length of output: 149


🏁 Script executed:

#!/bin/bash
echo "=== main.yml content ==="
head -100 ./.github/workflows/main.yml

echo -e "\n=== releases.yml content ==="
head -100 ./.github/workflows/releases.yml

Repository: formancehq/operator

Length of output: 4402


Update all go.mod files to Go 1.26 to match flake.nix.

The flake.nix has been upgraded to go_1_26, but three go.mod files are still pinned to Go 1.25:

  • ./go.mod
  • ./tools/kubectl-stacks/go.mod
  • ./tools/utils/go.mod

These should all be updated to go 1.26 to maintain consistency across the project. The toolchain versions should also be updated accordingly.

🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.

In `@flake.nix` at line 46, Update the Go module directives and toolchain pins
from 1.25 to 1.26 in the three modules so they match flake.nix: change the "go"
directive to 1.26 in go.mod (root), tools/kubectl-stacks/go.mod, and
tools/utils/go.mod and update any toolchain/version pins or CI/tooling
references that still target 1.25 to 1.26; after updating each module run a go
mod tidy (or equivalent) to refresh go.sum and ensure consistency.

@flemzord flemzord merged commit fafb30a into main Mar 20, 2026
6 checks passed
@flemzord flemzord deleted the chore/upgrade-go branch March 20, 2026 10:24
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