mirror of
https://github.com/elastic/kibana.git
synced 2025-04-23 17:28:26 -04:00
chore(NA): move the instruction to remove yarn global bazelisk package into the first place on install bazel tools (#91026)
This commit is contained in:
parent
591bcc1c71
commit
9fe8ccce47
2 changed files with 7 additions and 7 deletions
8
packages/kbn-pm/dist/index.js
vendored
8
packages/kbn-pm/dist/index.js
vendored
|
@ -48147,13 +48147,13 @@ async function installBazelTools(repoRootPath) {
|
|||
const bazeliskVersion = await readBazelToolsVersionFile(repoRootPath, '.bazeliskversion');
|
||||
const bazelVersion = await readBazelToolsVersionFile(repoRootPath, '.bazelversion'); // Check what globals are installed
|
||||
|
||||
_log__WEBPACK_IMPORTED_MODULE_4__["log"].debug(`[bazel_tools] verify if bazelisk is installed`); // Test if bazelisk is already installed in the correct version
|
||||
_log__WEBPACK_IMPORTED_MODULE_4__["log"].debug(`[bazel_tools] verify if bazelisk is installed`); // Check if we need to remove bazelisk from yarn
|
||||
|
||||
await tryRemoveBazeliskFromYarnGlobal(); // Test if bazelisk is already installed in the correct version
|
||||
|
||||
const isBazeliskPkgInstalled = await isBazeliskInstalled(bazeliskVersion); // Test if bazel bin is available
|
||||
|
||||
const isBazelBinAlreadyAvailable = await isBazelBinAvailable(); // Check if we need to remove bazelisk from yarn
|
||||
|
||||
await tryRemoveBazeliskFromYarnGlobal(); // Install bazelisk if not installed
|
||||
const isBazelBinAlreadyAvailable = await isBazelBinAvailable(); // Install bazelisk if not installed
|
||||
|
||||
if (!isBazeliskPkgInstalled || !isBazelBinAlreadyAvailable) {
|
||||
_log__WEBPACK_IMPORTED_MODULE_4__["log"].info(`[bazel_tools] installing Bazel tools`);
|
||||
|
|
|
@ -83,15 +83,15 @@ export async function installBazelTools(repoRootPath: string) {
|
|||
// Check what globals are installed
|
||||
log.debug(`[bazel_tools] verify if bazelisk is installed`);
|
||||
|
||||
// Check if we need to remove bazelisk from yarn
|
||||
await tryRemoveBazeliskFromYarnGlobal();
|
||||
|
||||
// Test if bazelisk is already installed in the correct version
|
||||
const isBazeliskPkgInstalled = await isBazeliskInstalled(bazeliskVersion);
|
||||
|
||||
// Test if bazel bin is available
|
||||
const isBazelBinAlreadyAvailable = await isBazelBinAvailable();
|
||||
|
||||
// Check if we need to remove bazelisk from yarn
|
||||
await tryRemoveBazeliskFromYarnGlobal();
|
||||
|
||||
// Install bazelisk if not installed
|
||||
if (!isBazeliskPkgInstalled || !isBazelBinAlreadyAvailable) {
|
||||
log.info(`[bazel_tools] installing Bazel tools`);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue