-
Notifications
You must be signed in to change notification settings - Fork 8.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore(NA): exit early with link for docs when using kbn_pm on windows (…
…#139745) This PR allow us to print an error message with a link to the docs when using kbn_pm on Windows outside of a WSL environment. --------- Co-authored-by: kibanamachine <[email protected]> Co-authored-by: Spencer <[email protected]>
- Loading branch information
1 parent
c3adc5b
commit 7242c1a
Showing
2 changed files
with
23 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
/* | ||
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one | ||
* or more contributor license agreements. Licensed under the Elastic License | ||
* 2.0 and the Server Side Public License, v 1; you may not use this file except | ||
* in compliance with, at your election, the Elastic License 2.0 or the Server | ||
* Side Public License, v 1. | ||
*/ | ||
|
||
/** | ||
* @param {import('./log.mjs').Log} log | ||
*/ | ||
export function checkIfRunningNativelyOnWindows(log) { | ||
if (process.platform !== 'win32') { | ||
return; | ||
} | ||
|
||
log.error( | ||
'We no longer support natively bootstrap Kibana on Windows. Please check our documentation on how you can develop on Windows at https://docs.elastic.dev/kibana-dev-docs/tutorial/setup-windows-development-wsl' | ||
); | ||
process.exit(1); | ||
} |