install_windows_bazelisk.ps1 413 B

1234567891011
  1. # Copyright The OpenTelemetry Authors
  2. # SPDX-License-Identifier: Apache-2.0
  3. $ErrorActionPreference = "Stop"
  4. trap { $host.SetShouldExit(1) }
  5. $BAZELISK_VERSION="1.16.0"
  6. $CWD=(Get-Item -Path ".\").FullName
  7. (new-object System.Net.WebClient). `
  8. DownloadFile("https://github.com/bazelbuild/bazelisk/releases/download/v$BAZELISK_VERSION/bazelisk-windows-amd64.exe",
  9. "C:\windows\system32\bazel.exe")