fix: install bazelisk on windows/macos instead of bazel

This commit is contained in:
Amin Yahyaabadi 2022-07-27 21:01:00 -07:00
parent 9da09a7595
commit 41af5a7f7c
6 changed files with 9 additions and 6 deletions

View File

@ -13,6 +13,7 @@ words:
- aminya - aminya
- applellvm - applellvm
- bazel - bazel
- bazelisk
- copr - copr
- vbatts - vbatts
- buildtools - buildtools

2
dist/setup_cpp.js vendored

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

2
dist/setup_cpp.mjs vendored

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -11,10 +11,12 @@ import { execSudo } from "../utils/exec/sudo"
export async function setupBazel(version: string, _setupDir: string, _arch: string) { export async function setupBazel(version: string, _setupDir: string, _arch: string) {
switch (process.platform) { switch (process.platform) {
case "win32": { case "win32": {
return setupChocoPack("bazel", version) // install bazelisk because it contains both
return setupChocoPack("bazelisk", version)
} }
case "darwin": { case "darwin": {
return setupBrewPack("bazel", version) // install bazelisk because it contains both
return setupBrewPack("bazelisk", version)
} }
case "linux": { case "linux": {
if (isArch()) { if (isArch()) {