Skip to content

Fix CLI lib path resolution after install#4

Open
gvago wants to merge 1 commit into
SagiMedina:mainfrom
gvago:fix/cli-lib-path-resolution
Open

Fix CLI lib path resolution after install#4
gvago wants to merge 1 commit into
SagiMedina:mainfrom
gvago:fix/cli-lib-path-resolution

Conversation

@gvago

@gvago gvago commented Apr 20, 2026

Copy link
Copy Markdown

Summary

  • handoff setup (and all other commands) failed with No such file or directory after running install.sh
  • The install.sh places handoff-common.sh at /usr/local/lib/handoff/handoff-common.sh, but the old one-liner resolved $SCRIPT_DIR/../lib to /usr/local/lib (since that directory exists), making it look for /usr/local/lib/handoff-common.sh
  • Replaced the fragile subshell chain with explicit directory checks: tries lib/handoff first (installed layout), then lib (repo layout), then hardcoded fallback

Test plan

  • ./install.sh then handoff setup completes without error
  • Running bin/handoff setup from the repo still works

🤖 Generated with Claude Code

The install script places handoff-common.sh at
/usr/local/lib/handoff/handoff-common.sh, but the old one-liner
resolved $SCRIPT_DIR/../lib to /usr/local/lib (since that directory
exists), causing "No such file or directory" on every command.

Replace the fragile subshell chain with an explicit directory check
that tries lib/handoff first, then lib, then the hardcoded fallback.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
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.

2 participants