SERVER-114771 Unset --workspace_status_command when installing python in bazel wrapper (#44745)

GitOrigin-RevId: c23a8685d5a2d1cbf81f33009d3a4e172653cc7d
This commit is contained in:
Sean Lyons 2025-12-04 10:55:02 -05:00 committed by MongoDB Bot
parent f3124b90b8
commit caf29fa725
2 changed files with 4 additions and 4 deletions

View File

@ -211,9 +211,9 @@ fi
# if no python use bazel to install one
if [[ "$python" = "" ]] || [ ! -f $python ]; then
>&2 echo "python prereq missing, using bazel to install python..."
>&2 $bazel_real build --bes_backend= --bes_results_url= @py_${os}_${ARCH}//:all
>&2 $bazel_real build --bes_backend= --bes_results_url= --workspace_status_command= @py_${os}_${ARCH}//:all
if [[ $? != 0 ]]; then
>&2 $bazel_real build --config=local @py_${os}_${ARCH}//:all
>&2 $bazel_real build --config=local --workspace_status_command= @py_${os}_${ARCH}//:all
if [[ $? != 0 ]]; then
if [[ ! -z "$CI" ]] || [[ $MONGO_BAZEL_WRAPPER_FALLBACK == 1 ]]; then
>&2 echo "wrapper script failed to install python! falling back to normal bazel call..."

View File

@ -101,9 +101,9 @@ if exist "%REPO_ROOT%\bazel-%cur_dir%" (
if not defined python (
(
echo python prereq missing, using bazel to install python...
"%BAZEL_REAL%" build --bes_backend= --bes_results_url= @py_windows_x86_64//:all
"%BAZEL_REAL%" build --bes_backend= --bes_results_url= --workspace_status_command= @py_windows_x86_64//:all
if !ERRORLEVEL! NEQ 0 (
"%BAZEL_REAL%" build --config=local @py_windows_x86_64//:all
"%BAZEL_REAL%" build --config=local --workspace_status_command= @py_windows_x86_64//:all
if !ERRORLEVEL! NEQ 0 (
if "%CI%"=="" if "%MONGO_BAZEL_WRAPPER_FALLBACK%"=="" (
call :cleanup_logfile