removed Makefile and added equivalent bash script#2003
Conversation
|
Warning Review limit reached
More reviews will be available in 38 minutes. Learn how PR review limits work. Your organization has run out of usage credits. Purchase more credits in the billing tab to continue. ⌛ How to resolve this issue?After more reviews become available, a review can be triggered using the We recommend that you space out your commits to avoid hitting the rate limit. 🚦 How do rate limits work?CodeRabbit enforces hourly rate limits for each developer per organization. Our paid plans include higher PR review limits than trial, open-source, and free plans. In all cases, reviews become available again over time. During sustained high-volume PR review activity, CodeRabbit may temporarily slow when the next review becomes available. Please see our Fair Usage Limits Policy for further information. ℹ️ Review info⚙️ Run configurationConfiguration used: Repository UI Review profile: ASSERTIVE Plan: Pro Run ID: 📒 Files selected for processing (3)
WalkthroughThis PR replaces the GNU Makefile with a Bash script ( ChangesBuild system replacement
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~22 minutes Possibly related issues
Poem
🚥 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 |
There was a problem hiding this comment.
Actionable comments posted: 4
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Inline comments:
In `@esignet-service/make.sh`:
- Line 189: Remove the dead reference to the `engine` binary in the cleanup
command: update the rm invocation in make.sh that currently lists "$BINARY" and
`engine` so it only removes the actual build artifact represented by "$BINARY";
locate the `rm -f "$BINARY" engine` line and delete `engine` from that command
to avoid removing a non-existent/legacy target.
- Around line 104-108: The target_coverage function currently hardcodes -race in
the go test invocation, ignoring the RACE variable used in target_test; update
target_coverage to construct and honor the same race flag logic (e.g., build a
RACE_ARG variable based on RACE like target_test does: if RACE != 0 then
RACE_ARG="-race" else RACE_ARG="" ) and use go test $RACE_ARG
-coverprofile=coverage.out -covermode=atomic ./... so coverage respects users
setting (keep function name target_coverage and the coverage profile steps
as-is).
- Line 190: Add a safety guard before the purge command that uses OUT_DIR and
bin/ so rm -rf cannot run if OUT_DIR is empty or "/", e.g. check that the
variable OUT_DIR is set and not equal to "/" (and optionally not "."), then only
run rm -rf bin/ "$OUT_DIR/"; update the invocation around the existing rm -rf
line that references OUT_DIR to perform this guard check first (protecting the
rm -rf operation).
- Line 179: The sed command in make.sh (the line invoking sed -i.bak "s|replace
github.com/thunder-id/thunderid => $THUNDER_MODULE .*|replace
github.com/thunder-id/thunderid => $THUNDER_MODULE $version|" go.mod) is
BSD-specific and may fail on GNU sed; replace it with a portable approach that
does not rely on sed -i flags (e.g., run sed without in-place editing to write
to a temporary file and then atomically move the temp back to go.mod, or
implement a fallback that tries BSD-style and then GNU-style), ensuring the
substitution pattern and variables ($THUNDER_MODULE and $version) remain
unchanged and no data loss occurs.
🪄 Autofix (Beta)
Fix all unresolved CodeRabbit comments on this PR:
- Push a commit to this branch (recommended)
- Create a new PR with the fixes
ℹ️ Review info
⚙️ Run configuration
Configuration used: Repository UI
Review profile: ASSERTIVE
Plan: Pro
Run ID: cf22bce0-b796-4927-ac93-fc210fc4c5e5
📒 Files selected for processing (3)
esignet-service/Makefileesignet-service/README.mdesignet-service/make.sh
💤 Files with no reviewable changes (1)
- esignet-service/Makefile
Signed-off-by: Sachin Rana <sacrana324@gmail.com>
#2002
Summary by CodeRabbit
New Features
Documentation
make.shscriptChores