Skip to content

Commit

Permalink
Fix version conflix for plugins
Browse files Browse the repository at this point in the history
Signed-off-by: Anan Zhuang <[email protected]>
  • Loading branch information
ananzh committed Apr 23, 2021
1 parent 1bfa6e4 commit 75a95db
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions packages/osd-plugin-helpers/src/cli.ts
Original file line number Diff line number Diff line change
Expand Up @@ -94,17 +94,12 @@ export function runCli() {
plugin
);

if (semver.satisfies(opensearchDashboardsVersion, '<7.9')) {
if (semver.satisfies(opensearchDashboardsVersion, '>1.0')) {
log.error(
'These tools are not designed to work with version before 7.9, please checkout an earlier version of OpenSearch Dashboards to build your plugin'
'These tools are not designed to work with version greater than 1.0, please checkout an earlier version of OpenSearch Dashboards to build your plugin'
);
process.exit(1);
}
if (semver.satisfies(opensearchDashboardsVersion, '~7.9.0')) {
log.warning(
'These tools might work with 7.9 versions, but there are known workarounds required. See https://github.com/elastic/kibana/issues/82466 for more info'
);
}

const sourceDir = plugin.directory;
const buildDir = Path.resolve(
Expand Down

0 comments on commit 75a95db

Please sign in to comment.