Skip to content

Add local code rebuild preflight check#413

Merged
cbusillo merged 1 commit into
mainfrom
test/install-binary-confidence
Jun 6, 2026
Merged

Add local code rebuild preflight check#413
cbusillo merged 1 commit into
mainfrom
test/install-binary-confidence

Conversation

@cbusillo
Copy link
Copy Markdown
Owner

@cbusillo cbusillo commented Jun 6, 2026

Summary

  • add scripts/local/rebuild-path-code.sh --preflight / --dry-run to inspect PATH and release-bin wiring without building or mutating files
  • add just local-code-rebuild-preflight and a deterministic temp-fixture just local-code-rebuild-preflight-check
  • document the preflight before local rebuild/install flows
  • avoid false confidence by skipping PATH code --version after rebuild when PATH does not resolve to the rebuilt binary

Refs #412.

Validation

  • just local-code-rebuild-preflight-check
  • bash -n scripts/local/rebuild-path-code.sh scripts/local/check-code-rebuild-preflight.sh
  • git diff --check --cached
  • ./build-fast.sh
  • just harness-smoke

Review

A scoped read-only agent review found one blocking issue: after a successful rebuild with mismatched PATH, the script still ran path_code --version, which could verify an unrelated binary. This PR now gates that call on safe PATH wiring and prints a skip note otherwise. The review's low-friction suggestions were also handled: portable ls -l, documented --dry-run, and a missing-PATH fixture.

@cbusillo cbusillo merged commit a87e824 into main Jun 6, 2026
1 check passed
@cbusillo cbusillo deleted the test/install-binary-confidence branch June 6, 2026 21:36
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.

1 participant