From 99e9ac75e039b74755ff36773f98362863bee336 Mon Sep 17 00:00:00 2001 From: Josh Mock Date: Wed, 23 Aug 2023 11:22:11 -0500 Subject: [PATCH] Fix codegen script for 8.8 (#1983) --- .ci/make.mjs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.ci/make.mjs b/.ci/make.mjs index 6855e8931..305f066e2 100644 --- a/.ci/make.mjs +++ b/.ci/make.mjs @@ -89,7 +89,7 @@ async function bump (args) { const pipeline = await readFile(join(import.meta.url, '..', '.buildkite', 'pipeline.yml')) await writeFile( join(import.meta.url, '..', '.buildkite', 'pipeline.yml'), - pipeline.replace(/STACK_VERSION: [0-9]+[0-9\.]*[0-9](?:\-SNAPSHOT)?/, `STACK_VERSION: - ${cleanVersion}-SNAPSHOT`), // eslint-disable-line + pipeline.replace(/STACK_VERSION: [0-9]+[0-9\.]*[0-9](?:\-SNAPSHOT)?/, `STACK_VERSION: ${cleanVersion}-SNAPSHOT`), // eslint-disable-line 'utf8' ) } @@ -97,7 +97,7 @@ async function bump (args) { // this command can only be executed locally for now async function codegen (args) { assert(args.length === 1, 'Codegen task expects one parameter') - const [version] = args + const version = args[0].toString() const clientGeneratorPath = join(import.meta.url, '..', '..', 'elastic-client-generator-js') const isGeneratorCloned = await $`[[ -d ${clientGeneratorPath} ]]`.exitCode === 0