Repository navigation
ci: replace Nix build check with adl-cli recompute pattern - #586
Merged
Merged
Conversation
Replace .github/workflows/nix-build.yml -- a multi-platform `nix build` that asserted the committed vendorHash and so broke on every go.mod bump (PR #585) -- with .github/workflows/nix.yml, modeled on inference-gateway/adl-cli: a single ubuntu job that blanks and recomputes the vendorHash before building, so CI validates that the flake builds rather than that the committed hash happens to be current. It also triggers on go.mod/go.sum, so it runs when dependencies change. The release-time vendorHash recompute in .releaserc.yaml is unchanged, so each release still commits the correct hash and tag-pinned `nix run github:inference-gateway/cli/v<tag>` keeps working. Also refresh the stale vendorHash so main builds today, and remove two stale Nix docs (docs/nix-distribution-overview.md, docs/nixpkgs-submission.md) that documented a deleted nix/package.nix + nix-version-sync.yml setup.
edenreich
force-pushed
the
ci/nix-recompute-check
branch
from
June 4, 2026 11:23
1db885d to
1d213ee
Compare
inference-gateway-releaser Bot
pushed a commit
that referenced
this pull request
Jun 5, 2026
## [0.118.0](v0.117.1...v0.118.0) (2026-06-05) ### 🚀 Features * add file explorer panel with tree view, preview, and fuzzy finder ([#589](#589)) ([2b73fcc](2b73fcc)), closes [#588](#588) * **cli:** adopt fang for styled help, errors, version and completions ([#592](#592)) ([b7f649e](b7f649e)) * **tui:** animate loading states and modernise progress/cursor styling ([#594](#594)) ([06057d7](06057d7)) * **tui:** drive diff colours from the active theme ([#598](#598)) ([f279c1c](f279c1c)) * modernize diff display and migrate Charm UI stack to v2 ([#576](#576)) ([6bf8ac6](6bf8ac6)) * **tui:** rebuild GitHub Action setup wizard with huh forms ([#597](#597)) ([c875e84](c875e84)) * theme collapsed tool result previews ([#603](#603)) ([ffc2ee9](ffc2ee9)) ### 🐛 Bug Fixes * **pricing:** flag Pro-subscription Ollama Cloud models in model picker ([#604](#604)) ([5ec0298](5ec0298)) * **tools:** make bash whitelist shell-aware to fix benign-command rejections ([#581](#581)) ([#605](#605)) ([6119f2a](6119f2a)) ### ♻️ Code Refactoring * **tui:** migrate theme selector to bubbles/v2/list ([#596](#596)) ([a46079c](a46079c)) * move git branch indicator to input view border ([#602](#602)) ([7132237](7132237)) * remove redundant comment ([8e3210d](8e3210d)) * **tui:** render help bar with bubbles/v2/help ([#595](#595)) ([5aed140](5aed140)) * **cli:** render list commands with native lipgloss tables ([#593](#593)) ([28a0e55](28a0e55)) * **config:** replace bespoke config commands with generic get/set ([#601](#601)) ([c80321a](c80321a)), closes [#600](#600) * separate git branch into own status bar row ([#591](#591)) ([9afbeb4](9afbeb4)) ### 💄 Styles * standardize log message capitalization ([e8ae466](e8ae466)) ### 🔧 Build System * **deps:** bump modernc.org/sqlite from 1.50.1 to 1.51.0 in the gomod group ([#584](#584)) ([908cfc4](908cfc4)) * **deps:** bump the github-actions group with 3 updates ([#585](#585)) ([a14de3e](a14de3e)) * **deps:** upgrade fang to charm.land/fang/v2 v2.0.1 ([d1b861f](d1b861f)) ### 👷 CI/CD * centralize claude.yml via reusable workflow ([#583](#583)) ([9a6839d](9a6839d)) * replace Nix build check with adl-cli recompute pattern ([#586](#586)) ([9c5f7cc](9c5f7cc)), closes [#585](#585) [#585](#585) [#585](#585) ### 🧹 Maintenance * **deps:** bump claude-code 2.1.148 -> 2.1.158 ([#582](#582)) ([5e8d0b5](5e8d0b5)) * **deps:** bump infer CLI v0.117.0 -> v0.117.1, infer-action v0.9.1 -> v0.11.1 ([#580](#580)) ([90ddcf3](90ddcf3)) * **deps:** bump infer-action v0.11.1 -> v0.11.2 ([#587](#587)) ([56f2df8](56f2df8)) * regenerate keybindings from earlier features ([ff09192](ff09192))
Contributor
|
🎉 This PR is included in version 0.118.0 🎉 The release is available on GitHub release Your semantic-release bot 📦🚀 |
Closed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What & why
The Nix Build Verification workflow went red on #585 (a Dependabot github-actions bump). Root cause: a Go-module
vendorHashmismatch —flake.nix's pinned hash had drifted from the actual module set.The old
nix-build.ymlran a plainnix buildthat asserts the committedvendorHash, so it breaks the momentgo.mod/go.sumchange. Worse, its path filter (flake.nix/flake.lock/nix-build.yml) never ran ongo.modPRs, so the hash silently rotted between releases and only detonated when an unrelated workflow edit happened to re-trigger it (which is exactly what #585 did).Change
Replace
nix-build.ymlwithnix.yml, modeled oninference-gateway/adl-cli: a singleubuntu-24.04job that blanks and recomputes thevendorHashbefore building, thennix build .#inferand runsinfer version.go.mod/go.sumtoo, so it actually runs when dependencies change.Unchanged on purpose
.releaserc.yamlrelease-time recompute (@semantic-release/exec) is untouched — already identical to adl-cli's. Every release still recomputes and commits the correct hash, so tag-pinnednix run github:inference-gateway/cli/v<tag>keeps working.flake.nixstays (tag-pinning preserved).Also
vendorHashsomainbuilds today.docs/nix-distribution-overview.md,docs/nixpkgs-submission.md) that documented a long-deletednix/package.nix+nix-version-sync.ymlsetup.After merge
Comment
@dependabot rebaseon #585 — its only failure was the old workflow, which is gone here, so its remaining action bumps will go green. No required status checks reference Nix, so nothing is stranded.