Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 13 additions & 13 deletions flake.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions flake.nix
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
description = "A Nix-flake-based Go 1.25 development environment";
description = "A Nix-flake-based Go 1.26 development environment";

inputs = {
nixpkgs.url = "https://flakehub.com/f/NixOS/nixpkgs/0.2511";
Expand Down Expand Up @@ -43,7 +43,7 @@
stablePackages = with pkgs; [
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.

gotools
just
kubernetes-helm
Expand Down