Ensure BUILD.bazel files are present for bootstrap steps
@@ -39,6 +39,9 @@ function kubevirt::bootstrap::regenerate() {
cd ${KUBEVIRT_DIR}
rm ${SANDBOX_DIR} -rf
rm .bazeldnf/sandbox.bazelrc -f
+ # Run gazelle to ensure that nogo has all build files resolved and that we can bootstrap the env.
+ # This is necessary since some steps remove the vendor build files and nogo would be broken then.
+ KUBEVIRT_BOOTSTRAPPING=true bazel run --config=${ARCHITECTURE} //:gazelle -- -exclude vendor/google.golang.org/grpc --exclude cluster-up
KUBEVIRT_BOOTSTRAPPING=true bazel run --config ${HOST_ARCHITECTURE} //rpm:sandbox_${1}
bazel clean
