build(nix): fix vendorHash + sandbox tests, automate hash upkeep - #1255
Merged
Merged
Conversation
nix build failed with a vendorHash mismatch (go.sum drifted), and once past that, four cmd/strike eval tests failed because they mkdir under $HOME, which is the unwritable /homeless-shelter in the Nix sandbox. - flake.nix: update vendorHash; set HOME to a tmpdir in preCheck - scripts/update-nix-vendor-hash.sh + `make nix-vendor-hash`: recompute the hash by building only .#default.goModules (the fixed-output module derivation), no compile - .github/workflows/nix-vendor-hash.yml: run on pushes to main touching go.mod/go.sum/go.work*/flake.*, push a fixup commit on drift Files: flake.nix, Makefile, scripts/update-nix-vendor-hash.sh, .github/workflows/nix-vendor-hash.yml Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
dayvidpham
added a commit
to dayvidpham/dotfiles
that referenced
this pull request
Aug 28, 2026
- tuicr: new input github:agavra/tuicr, exposed as pkgs.tuicr via overlay (flake exports packages.<system>.default, not .tuicr), and added to minttea's home packages - strike: move input from dayvidpham/strike feat/nix-installable-flake to github:jonathanung/strike now that jonathanung/strike#1255 (vendorHash fix + sandbox HOME workaround) is merged; lock at 1b4d31f - reorder inputs so "My stuff" section groups own forks Files: flake.nix, flake.lock, users/minttea/home.nix Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
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.
Problem
nix buildonmainfails twice over:go.sumchanged butflake.nixstill had the old hash:TestRunEvalSWEBenchDryRun,TestRunEvalTBenchDryRun,TestRunEvalTBenchWithTasksDir,TestRunEvalSweepDryRunallmkdirunder$HOME, which is the unwritable/homeless-shelterin the Nix sandbox.Neither surfaced in CI because no job runs Nix.
Changes
flake.nix: correctvendorHash;preChecksetsHOMEto a tmpdir.scripts/update-nix-vendor-hash.sh/make nix-vendor-hash: swaps inlib.fakeHash, builds only.#default.goModules(the fixed-output module-download derivation — no compile), and writes the reported hash back. Restores the original on any failure..github/workflows/nix-vendor-hash.yml: on pushes tomaintouchinggo.mod/go.sum/go.work*/flake.*, recomputes and pusheschore(nix): update vendorHashif drifted. Alsoworkflow_dispatch.Verified
nix build .#defaultsucceeds (tests pass in sandbox).Notes
GITHUB_TOKEN; a bot push won't re-trigger other workflows. Fine for a hash fixup onmain, but swap in a PAT/App token if you want CI to re-run on it.🤖 Generated with Claude Code