Add make install target for hooksctl#11
Conversation
Runs `go install ./cmd/hooksctl` so it installs into each developer's GOBIN (or $GOPATH/bin) — portable across developers (no sudo, no hardcoded path, cross-platform) rather than copying to /usr/local/bin.
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Plus Run ID: 📒 Files selected for processing (2)
📝 WalkthroughWalkthroughThe pull request adds a ChangesInstall target and documentation
🎯 1 (Trivial) | ⏱️ ~3 minutes 🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ 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 |
|



Summary
make installtarget that runsgo install ./cmd/hooksctl, installing the operator CLI onto the developer's PATH.go installover copying to/usr/local/binfor portability across all developers: no sudo, no hardcoded path, cross-platform, and it honors each developer'sGOBIN(overridable viaGOBIN=/some/dir make install).make installin CLAUDE.md's common-commands list.Test plan
make installinstallshooksctlintoGOBIN; the installed binary runs (hooksctl --help,hooksctl whoami).GOBIN=/tmp/... make installredirects the install to the override directory.go install -n ./cmd/hooksctldry-run resolves to ahooksctlbinary inGOBIN.Review notes
make buildbuilds bothhooksandhooksctl, butmake installintentionally installs onlyhooksctl(the dev/operator CLI developers want on PATH; the server runs viamake run/make devor Docker). CLAUDE.md's line states onlyhooksctlis installed, so this is documented rather than a surprise.Summary by CodeRabbit
New Features
Documentation