From 813d4168836fc024e3ccbb55e8dbabd6e2f5f443 Mon Sep 17 00:00:00 2001 From: Leonid Shalupov Date: Thu, 19 Jun 2025 19:17:26 +0200 Subject: [PATCH] project structure: assert that all bazel.cmd and .bazeliskversion files are the same across monorepo GitOrigin-RevId: b1777fe82afdf3b22087ca7d8e0d85be652355fa --- bazel.cmd | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/bazel.cmd b/bazel.cmd index 0a82992a6a48..326d81f87827 100755 --- a/bazel.cmd +++ b/bazel.cmd @@ -22,7 +22,7 @@ case $os in target_dir="$HOME/Library/Caches/JetBrains/monorepo-bazelisk" ;; *) - echo "Unsupported OS: $os" + echo "Unsupported OS: $os" >&2 exit 1 ;; esac @@ -36,7 +36,7 @@ case $arch in arch="arm64" ;; *) - echo "Unsupported architecture: $arch" + echo "Unsupported architecture: $arch" >&2 exit 1 ;; esac @@ -47,7 +47,7 @@ mkdir -p "$target_dir" if [ ! -x "$binary_path" ]; then download_url="https://cache-redirector.jetbrains.com/github.com/bazelbuild/bazelisk/releases/download/v$bazelisk_version/bazelisk-${os}-${arch}" - echo "Downloading $download_url to $binary_path" + echo "Downloading $download_url to $binary_path" >&2 curl -fsSL -o "$binary_path.tmp.$$" $download_url mv "$binary_path.tmp.$$" "$binary_path" chmod +x "$binary_path" @@ -80,7 +80,7 @@ Set-StrictMode -Version 3.0; ^ ^ Move-Item -Path $tmpFile -Destination \"%BAZELISK_TARGET_FILE%\" -Force; -IF NOT EXIST "%BAZELISK_TARGET_FILE%" "%POWERSHELL%" -nologo -noprofile -Command %POWERSHELL_COMMAND% +IF NOT EXIST "%BAZELISK_TARGET_FILE%" "%POWERSHELL%" -nologo -noprofile -Command %POWERSHELL_COMMAND% >&2 %BAZELISK_TARGET_FILE% %* exit /B %ERRORLEVEL%