Repository navigation
Put the Managed Bin Directory on install-tools.sh's Own PATH When the Caller Omits It - #2588
Conversation
… Caller Omits It Under a cron-style PATH of /usr/bin:/bin the report called managed jq, uv and git-restore-mtime missing or read the distro jq and added a false shadow note. The script now prepends its bin directory when the caller's PATH lacks it, and leaves a PATH that names it alone so a real shadow is still reported. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
|
Important
This repository does not receive automatic reviews because it has fewer than 10 stars. ⚙️ Run configuration
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## develop #2588 +/- ##
========================================
Coverage 58.85% 58.85%
========================================
Files 16 16
Lines 8181 8181
========================================
Hits 4815 4815
Misses 3366 3366
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
There was a problem hiding this comment.
🟢 Approval recommended
Only a minor documentation nit remains; no blocking issues were identified.
0 open findings
What changed in this PR
Updates the Linux installer to prepend /usr/local/bin when absent, ensuring managed tools resolve correctly under minimal PATH values.
Changes:
- Adds PATH normalization and integration in
main. - Adds tests for PATH handling, shadow detection, and reporting.
- Retains one P2 documentation nit regarding redundant function comments.
| File | Reviewed changes |
|---|---|
tests/test_install_tools.py |
Tests PATH normalization, shadow handling, and main integration. |
host-setup/linux/install-tools.sh |
Adds managed-bin PATH handling; contains a P2 documentation nit about redundant comments. |
🧠 Review effort: Lite
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
…, Table Carry Test (#2591) ## Summary Promotes develop to main, carrying: - #2588 Put the Managed Bin Directory on install-tools.sh's Own PATH When the Caller Omits It - #2589 Run bootstrap.sh's Whole Main Flow Against a Stub Download and Stub Tools - #2586 Pin the Table Carry Onto a Second-Format Lite Round That Finds Nothing - #2593 Assert the Lite Table-Carry Test's Own Premise Fixes #2257 Fixes #1767 Fixes #2282 🤖 Generated with [Claude Code](https://claude.com/claude-code)
install-tools.shnow puts its own$BIN_DIR(/usr/local/bin) first onPATHat the start ofmainwhen the caller'sPATHleaves it out, so a cron-stylePATH=/usr/bin:/binreads the managed jq, uv and git-restore-mtime instead of calling them missing or adding a false shadow note. APATHthat already names$BIN_DIRkeeps its order, so a copy genuinely ahead of it is still reported as a shadow. Prepending (not appending) makes the managed copy win, which matches the script's own stated intent.Tests: four-plus unit tests in
tests/test_install_tools.pycover the prepend, an emptyPATH, an unchangedPATHwith a real shadow still reported, an equivalent spelling of the directory, no false shadow on a minimalPATH, andmaincalling the function.Host evidence (WSL2 Debian 13):
--report --jsonreturns the same installed versions with emptynotes. Shellcheck clean, ruff clean,python3 -m unittest tests.test_install_toolsOK.Closes on promotion: #2257
🤖 Generated with Claude Code