Skip to content

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

Closed
wants to merge 12 commits into from

Conversation

apesternikov
Copy link
Contributor

@apesternikov apesternikov commented Jul 30, 2024

Update go deps to more recent. Specifically, kubernetes client libraries are updated 0.26 -> 0.29

Comment on lines +9 to 11
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"

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.

@apesternikov apesternikov marked this pull request as ready for review July 30, 2024 19:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant