Skip to content

feat: overwrite cargo-installed ino and verify the install #1

Summary

  • Replace the inline [tasks.install] entry with a mise file task at mise-tasks/install, so the task can do more than a single zig build command.
  • Install over an existing cargo-installed ino in $CARGO_HOME/bin, since that directory usually precedes ~/.local/bin on PATH and would otherwise keep shadowing the fresh build.
  • Fall back to $INO_PREFIX/bin when set, then to ~/.local/bin.
  • After installing, check that ino on PATH resolves to the newly installed file and reports the version from build.zig.zon, failing with an actionable message on a stale or shadowing binary.
  • Document the overwrite behavior, the verification step, and the INO_PREFIX override in the README.

Testing

  • mise run install — installed the current build over the stale cargo binary and printed the verified ino <version> output.
  • mise run install with INO_PREFIX pointing at a directory not on PATH — exits 1 and reports the binary that actually shadows the install.
  • mise run verify — formatting check, Zig test suite, and release build all pass.

Sign in to comment on this pull request.