-
Notifications
You must be signed in to change notification settings - Fork 256
verify-vendor.sh: fix early exit on non-zero exit code #4949
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
If `git diff --exit-code vendor go.mod go.sum` found a difference, it exited with exit code 1 and caused the whole script to exit prematurely due to `set -o errexit`, skipping the printing of the final message to the user.
WalkthroughRefactors a shell script by collapsing a two-step git diff check into a single inline conditional, preserving behavior and exit status handling. Output messages remain effectively the same aside from formatting. Changes
Estimated code review effort🎯 1 (Trivial) | ⏱️ ~2 minutes Poem
Pre-merge checks and finishing touches❌ Failed checks (1 warning)
✅ Passed checks (2 passed)
✨ Finishing touches
🧪 Generate unit tests
📜 Recent review detailsConfiguration used: CodeRabbit UI Review profile: CHILL Plan: Pro 📒 Files selected for processing (1)
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (18)
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 |
|
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: The full list of commands accepted by this bot can be found here.
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
|
@redbeam: The following tests failed, say
Full PR test history. Your PR dashboard. Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. I understand the commands that are listed here. |
If
git diff --exit-code vendor go.mod go.sumfound a difference, it exited with exit code 1 and caused the whole script to exit prematurely due toset -o errexit, skipping the printing of the final message to the user.Summary by CodeRabbit
Refactor
Chores