fix: make clean fails on write-protected binaries in ./bin - #26
Conversation
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Plus Run ID: 📒 Files selected for processing (1)
Included review availability: Your plan provides up to 1 included review per hour; 0 remain after this review. 📝 WalkthroughWalkthroughThe ChangesLocal binary cleanup
Estimated code review effort: 1 (Trivial) | ~2 minutes Merge Risk: ⚪ Minimal · up to This localized change updates cleanup behavior for write-protected binaries and is merge-ready after normal checks and review; no actionable merge-blocking risk remains. Suggested reviewers: 🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✨ Finishing Touches🧪 Generate unit tests (beta)
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 |
What
Make
make cleanable to delete$(LOCALBIN)when it contains write-protected binaries.Why
Binaries installed into
./bin(e.g. viago install) end up moder-xr-xr-x, sorm -rf $(LOCALBIN)fails with "Permission denied" andmake cleanerrors out. Addingchmod -R u+wbefore thermrestores write permission on the directory entries first. The-prefix keepscleanworking when./bindoesn't exist.Testing
Manual:
make <tool-target>to populate./bin, thenmake clean— succeeds now, failed before. Also verifiedmake cleanis a no-op on a tree without./bin.Checklist
Tests added/updatedn/aSummary by CodeRabbit