Skip to content

feat: bump Go version to 1.26.4 - #279

Merged
edenreich merged 3 commits into
mainfrom
feature/bump-go-1.26.4
Jul 14, 2026
Merged

edenreich merged 3 commits into
mainfrom
feature/bump-go-1.26.4

Conversation

@inference-gateway-maintainer

Copy link
Copy Markdown
Contributor

Summary

Bump the Go version from 1.26.2 to 1.26.4 across the entire project. This updates the go.mod directive, Flox sandbox pin, CLI defaults for generated projects, all documentation files, example manifests, and test fixtures to reflect the new minimum Go version.

Changes

  • Bump go.mod go directive from 1.26.2 to 1.26.4
  • Update Flox sandbox manifest to pin go.version = "^1.26.4"
  • Update CLI defaults in cmd/init.go and cmd/init_wizard.go to default to 1.26.4
  • Update template default in internal/templates/common/ai/claude.md.tmpl
  • Update documentation: CLAUDE.md, CONTRIBUTING.md, README.md
  • Update all example YAML manifests to use 1.26.4
  • Update all test fixtures referencing Go version 1.26.2

Update go.mod, Flox manifest, CLI defaults, docs, examples, and tests from 1.26.2 to 1.26.4.
@edenreich

Copy link
Copy Markdown
Contributor

@infer CI is failing - can you fix this?

@inference-gateway-maintainer

inference-gateway-maintainer Bot commented Jul 14, 2026 •

Copy link
Copy Markdown
Contributor Author

Model: ollama_cloud/deepseek-v4-flash · View Job

Todos

  • Investigate CI failure: nix build vendorHash mismatch in flake.nix
  • Fix flake.nix: add GOTOOLCHAIN=local to prevent Go toolchain auto-download in nix sandbox
  • Run local checks (task ci) to verify fix
  • Commit and push the fix

Pull Request

#279

✅ Infer Result: Success

The fix is committed and pushed to PR #279. The GOTOOLCHAIN=local env var in flake.nix prevents Go from trying to auto-download the 1.26.4 toolchain in the nix sandbox, which was causing the nix build to fail before it could compute the vendorHash.

Model: ollama_cloud/deepseek-v4-flash · Exit Code: 0 · Duration: 2m 17s

Tokens: 1,174,371 in · 5,923 out · 1,180,294 total (18 requests)

Tool calls: 25 total · 92% success rate

⚠️ 2 failed tool call(s)
  • Bash:
    exit status 128: fatal: origin/main...HEAD: no merge base
    
  • Bash:
    exit status 1: Build	fail	31s	https://github.com/inference-gateway/adl-cli/actions/runs/29362581394/job/87186130117	
    Analyze (actions)	pass	41s	https://github.com/inference-gateway/adl-cli/actions/runs/29362578307/job/87186125378	
    … (truncated)
    

Triggered by edenreich · Infer Action

…ad in nix sandbox

When go.mod declares go 1.26.4, Go 1.21+ tries to auto-download that toolchain if the nixpkgs Go is older. In the nix sandbox this download fails, so the nix build never emits a vendorHash. Setting GOTOOLCHAIN=local tells Go to use the nixpkgs Go compiler directly.
@edenreich

Copy link
Copy Markdown
Contributor

@claude CI is failing, can you fix it? fix the root cause.

@inference-gateway-maintainer

inference-gateway-maintainer Bot commented Jul 14, 2026 •

Copy link
Copy Markdown
Contributor Author

Claude finished @edenreich's task in 15m 32s —— View job


CI Fixed ✅

All three workflows are green on the latest commit (68fa162):

Workflow Result
Nix (was failing) ✅ success
CI ✅ success
PR #279 ✅ success
  • Investigate the CI failure
  • Determine the root-cause fix
  • Implement the fix in go.mod
  • Verify canonical go.mod formatting
  • Commit and push (68fa162)
  • Confirm the Nix workflow goes green on re-run

Root cause

The Nix workflow's Validate flake builds step failed with could not extract vendorHash. That step plants a placeholder vendorHash, runs nix build .#adl, and scrapes the got: line from Nix's hash-mismatch error to recover the real hash. The build was erroring out before the vendor hash was ever computed:

  • The flake builds in a hermetic, offline sandbox using nixpkgs' bundled Go (1.26.2) with GOTOOLCHAIN=local.
  • go.mod required go 1.26.4, so Go hard-failed - go.mod requires go >= 1.26.4 (running go 1.26.2; GOTOOLCHAIN=local) - before downloading a single module → no got: line → the workflow's -z "$NEW_HASH" guard tripped.

Regular CI passed only because actions/setup-go reads go-version-file: go.mod and downloads 1.26.4 over the network - which the hermetic Nix build can't do. The prior GOTOOLCHAIN=local commit was necessary but not sufficient; it only swapped a "toolchain download failed" error for a "toolchain too old" one.

The fix

Split the go directive in go.mod so the sandbox no longer needs exactly 1.26.4:

-go 1.26.4
+go 1.26.2
+
+toolchain go1.26.4
  • go 1.26.2 - the language floor, low enough for the sandbox's offline Go to satisfy (so the vendor hash computes again), and exactly the value main already proved go mod tidy-stable.
  • toolchain go1.26.4 - pins the target toolchain, so setup-go, regular CI, and release still build with 1.26.4. Nothing downstream is downgraded; the intent of the version bump is preserved.

Verified before pushing: go mod edit -print returns byte-identical output (canonical format, so CI's go mod tidy + git diff --exit-code stays clean), and the dependency set is unchanged from main so the floor won't be auto-bumped. flake.nix keeps GOTOOLCHAIN=local - it's now correct and load-bearing.

Note: I left the unrelated working-tree edit to CLAUDE.md alone and committed only go.mod.
· branch feature/bump-go-1.26.4

The Nix flake build runs in a hermetic sandbox using nixpkgs' bundled
Go (1.26.2) with GOTOOLCHAIN=local. A bare `go 1.26.4` directive makes
Go hard-fail ("requires go >= 1.26.4") before the vendor hash can be
computed, so the workflow's hash-extraction step finds no `got:` line
and aborts.

Split the directive: keep the language floor at 1.26.2 (satisfiable by
the sandbox's offline toolchain) and pin the target toolchain to
go1.26.4. Regular CI and release still build with 1.26.4 via setup-go
and the toolchain directive, while the offline Nix build can compute
the vendor hash again.
@edenreich
edenreich marked this pull request as ready for review July 14, 2026 22:15
@edenreich
edenreich requested a review from a team as a code owner July 14, 2026 22:15
@edenreich
edenreich merged commit 4945a28 into main Jul 14, 2026
1 check passed
@edenreich
edenreich deleted the feature/bump-go-1.26.4 branch July 14, 2026 22:15
inference-gateway-releaser Bot added a commit that referenced this pull request Jul 14, 2026
## [0.48.0](v0.47.1...v0.48.0) (2026-07-14)

### ✨ Features

* bump Go version to 1.26.4 ([#279](#279)) ([4945a28](4945a28))
* generate OTel-aligned telemetry configuration from extended spec.telemetry ([#281](#281)) ([47c5b3d](47c5b3d))

### 🐛 Bug Fixes

* quote boolean and numeric env values in compose template ([#267](#267)) ([6198824](6198824))

### 📚 Documentation

* add missing CLI flags to README generate/init flag tables ([#275](#275)) ([db0a842](db0a842))
* document spec.telemetry OpenTelemetry generation ([#277](#277)) ([bd75c08](bd75c08)), references [#259](#259)
* fix project structure diagrams and universal files section ([#274](#274)) ([17bad1b](17bad1b)), closes [#272](#272)
* mark Service Injection code examples as illustrative with template references ([#278](#278)) ([69b9806](69b9806))
* remove missing example ref, document all examples ([#273](#273)) ([4e30aff](4e30aff)), closes [#268](#268)
* update Template System and Architecture section with accurate Context struct and file mapping ([#276](#276)) ([352d084](352d084))
@inference-gateway-releaser

Copy link
Copy Markdown
Contributor

🎉 This PR is included in version 0.48.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

@inference-gateway-releaser inference-gateway-releaser Bot added the released Shipped in a release label Jul 14, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

released Shipped in a release

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant