Skip to content

Commit

Permalink
Adding fix for repo health
Browse files Browse the repository at this point in the history
Signed-off-by: Yashvi Jain <[email protected]>
  • Loading branch information
Yashvi Jain committed Dec 30, 2024
1 parent eda092d commit 2572898
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 4 deletions.
1 change: 0 additions & 1 deletion .expeditor/verify.pipeline.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@ steps:
#
- label: "[codegen] A2 protobufs"
command:
- git config --global --add safe.directory /go/src/github.com/chef/automate
- hab studio run "source .studiorc && verify_all_protobuf_components"
timeout_in_minutes: 10
soft_fail: true
Expand Down
4 changes: 3 additions & 1 deletion .studio/common
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,9 @@ document "verify_products_generation" <<DOC
DOC
function verify_products_generation() {
install_if_missing core/git git

git config --global --add safe.directory /go/src/github.com/chef/automate
git config --global --add safe.directory '*'

deployment_generate || return $?

git add .
Expand Down
3 changes: 2 additions & 1 deletion .studio/protobuf
Original file line number Diff line number Diff line change
Expand Up @@ -240,7 +240,8 @@ document "verify_all_protobuf_components" <<DOC
DOC
function verify_all_protobuf_components() {
install_if_missing core/git git

git config --global --add safe.directory /go/src/github.com/chef/automate
git config --global --add safe.directory '*'
clean_all_compiled_protos || return $?
bootstrap_proto_compilers || return $?
compile_all_protobuf_components || return $?
Expand Down
2 changes: 1 addition & 1 deletion scripts/repo_health.sh
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ desired_golang_version() {
export GOPROXY="https://proxy.golang.org,direct"
export GOSUMDB="sum.golang.org"

hab pkg install -b core/git core/ruby core/jq-static core/shellcheck core/cacerts
hab pkg install -b core/git ore/ruby/3.0.6/20240108025751 core/jq-static core/shellcheck core/cacerts
hab pkg install -b "core/go1_22/1.22.5"

echo "Checking Go Dependencies And Vendored Protos"
Expand Down

0 comments on commit 2572898

Please sign in to comment.