-
Notifications
You must be signed in to change notification settings - Fork 14
upgrade deps and modernize naming conventions #41
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
bazel build //gitops/blaze_query:build_go_proto //gitops/analysis:analysis_go_proto | ||
GEN_REPB_PATH="gitops/blaze_query/build.pb.go" | ||
cp -f "$(find $(bazel info bazel-bin) -path "*/$GEN_REPB_PATH")" "$GEN_REPB_PATH" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The script uses bazel build
to generate protobuf files and then copies the generated file using find
. However, there is no error handling to check if the bazel build
command or the find
command fails. This could lead to silent failures and make debugging difficult.
Recommended Solution:
Add error handling after the bazel build
command and the find
command to ensure that any failures are caught and reported. This can be done by checking the exit status of the commands and printing an error message or exiting the script if they fail.
Update go deps to more recent. Specifically, kubernetes client libraries are updated 0.26 -> 0.29