From ddc34866691a58607f11b7888fe9c368d0d9d756 Mon Sep 17 00:00:00 2001 From: ensonic Date: Fri, 21 Nov 2025 11:45:11 +0000 Subject: [PATCH] 3rd attempt to reverse engineer bazel --- deploy.sh | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/deploy.sh b/deploy.sh index a3e0fbc1..7743823d 100755 --- a/deploy.sh +++ b/deploy.sh @@ -78,6 +78,12 @@ function kc { } function prepare_source_install { + bazel ${BAZEL_FLAGS} build //src/go/cmd/synk + # Temporary check for location of the built synk binary: + echo "# 1: Finding synk binary location" + bazel info || /bin/true + find -L ${DIR}/bazel-bin/ -name "synk" -exec ls -al {} \; || /bin/true + bazel ${BAZEL_FLAGS} build \ "@hashicorp_terraform//:terraform" \ "@kubernetes_helm//:helm" \ @@ -89,11 +95,12 @@ function prepare_source_install { //src/go/cmd/synk # Temporary check for location of the built synk binary: - echo "Finding synk binary location" - bazel info | grep ${DIR} || /bin/true + echo "# 2: Finding synk binary location" + bazel info || /bin/true # Haha: '/workspace/bazel-bin/src/go/cmd/synk': No such file or directory # find -L ${DIR}/bazel-bin/src/go/cmd/synk -name "synk" -type f - find -L ${DIR}/bazel-bin/ -name "synk" || /bin/true + # only /workspace/bazel-bin/src/go/pkg/synk + find -L ${DIR}/bazel-bin/ -name "synk" -exec ls -al {} \; || /bin/true # TODO(rodrigoq): the artifactregistry API would be enabled by Terraform, but # that doesn't run until later, as it needs the digest of the setup-robot