zeekayandz 52207b4cfa install: warn when a stale binary shadows what we just installed
A binary earlier on PATH permanently masks the one the installer writes, and
the failure is SILENT in the worst way: the install reports success, the user
runs the old copy forever, and re-running the installer never fixes it because
it writes to a DIFFERENT directory.

Found live: ~/.local/bin/hanzo held a retired Go build (it reports version
'dev') while the canonical Rust CLI installs to ~/.cargo/bin. uv also installs
tools into ~/.local/bin, so a Python `hanzo` shadows the same way. Someone in
that state debugs a CLI they are not running.

check_shadowing compares `command -v <bin>` against where we actually put it,
for hanzo/mcp/dev/hanzod, and prints the exact mv to fix it. It does NOT delete
anything — the user's files are theirs — but staying quiet is what makes this
cost hours.

Verified all three cases with a harness against the real function:
  stale first on PATH  -> warns, naming both paths
  canonical first      -> silent (no false positive)
  canonical not present-> silent (nothing to shadow)
(My first harness run passed for the wrong reason — I had created `cargo/bin`
instead of `.cargo/bin`, so the check correctly found nothing. Fixed the
harness, then it caught the case.)
2026-07-26 00:47:52 -07:00
2024-11-11 12:49:20 +00:00
2026-02-14 05:26:47 -08:00
2026-01-20 12:22:38 -08:00

hanzo.sh

Welcome to your Hanzo project

Project info

URL: https://hanzo.app/projects/dedf1346-02b9-4baa-9273-6df78b702788/improve

How can I edit this code?

There are several ways of editing your application.

Use Hanzo App

Simply visit Hanzo App at hanzo.app and start prompting.

Use your preferred IDE

If you want to work locally using your own IDE, you can clone this repo and push changes. Pushed changes will also be reflected in the Hanzo App.

The only requirement is having Node.js & npm installed - install with nvm

Follow these steps:

# Step 1: Clone the repository using the project's Git URL.
git clone <YOUR_GIT_URL>

# Step 2: Navigate to the project directory.
cd <YOUR_PROJECT_NAME>

# Step 3: Install the necessary dependencies.
npm i

# Step 4: Start the development server with auto-reloading and an instant preview.
npm run dev

Edit a file directly in GitHub

  • Navigate to the desired file(s).
  • Click the "Edit" button (pencil icon) at the top right of the file view.
  • Make your changes and commit the changes.

Use GitHub Codespaces

  • Navigate to the main page of your repository.
  • Click on the "Code" button (green button) near the top right.
  • Select the "Codespaces" tab.
  • Click on "New codespace" to launch a new Codespace environment.
  • Edit files directly within the Codespace and commit and push your changes once you're done.

What technologies are used for this project?

This project is built with Hanzo and these open source projects:

  • Vite
  • TypeScript
  • React
  • shadcn-ui
  • Tailwind CSS

How can I deploy this project?

All Hanzo projects can be deployed directly via Hanzo App and the Hanzo Platform.

Simply visit your project at Hanzo App and click on Share -> Publish.

I want to use a custom domain - is that possible?

Yes we do. Please deploy with Hanzo Platform for this advanced functionality.

S
Description
Mirrored from git.hanzo.ai
Readme MIT
1.2 MiB
Languages
TypeScript 86.5%
Shell 8.6%
JavaScript 2.6%
HTML 1.2%
CSS 1.1%