Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 22 additions & 0 deletions .buildkite/scripts/steps/checks/pkg_json_semver_ranges.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
#!/usr/bin/env bash

set -euo pipefail

source .buildkite/scripts/common/util.sh

echo "--- Check package.json for non allowed semver ranges"
set +e
node scripts/check_pkg_json_semver_ranges
check_exit_code=$?

yarn kbn bootstrap --force-install
bootstrap_exit_code=$?
set -e

if [[ "${check_exit_code}" != "0" || "${bootstrap_exit_code}" != "0" ]]; then
echo "node scripts/check_pkg_json_semver_ranges && yarn kbn bootstrap --force-install failed with an error - undoing any changes" >&2
git checkout -- .
exit 2
fi

check_for_changed_files 'node scripts/check_pkg_json_semver_ranges' true 'TO FIX: Run node '"'"'scripts/check_pkg_json_semver_ranges && yarn kbn bootstrap'"'"' locally and then commit the changes and push to your branch'
4 changes: 4 additions & 0 deletions .buildkite/scripts/steps/checks/quick_checks.json
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,10 @@
"script": ".buildkite/scripts/steps/checks/yarn_deduplicate.sh",
"mayChangeFiles": true
},
{
"script": ".buildkite/scripts/steps/checks/pkg_json_semver_ranges.sh",
"mayChangeFiles": true
},
{
"script": ".buildkite/scripts/steps/checks/prettier_topology.sh"
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,5 @@ ajv-formats
dompurify
@axe-core/playwright
magic-bytes.js
@opentelemetry/exporter-trace-otlp-grpc
@ai-sdk/langchain
4 changes: 2 additions & 2 deletions .github/copilot-instructions.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ Kibana is a browser-based analytics and search dashboard for Elasticsearch, cons
**Key Technologies:**

- **Runtime:** Node.js (exact version required, check `.nvmrc` and `.node-version`)
- **Package Manager:** Yarn ^1.22.19 (Yarn 2.0+ not supported)
- **Package Manager:** Yarn 1.22.22
- **Primary Languages:** TypeScript, JavaScript (React for frontend)
- **Architecture:** Plugin-based with shared core platform

Expand Down Expand Up @@ -194,7 +194,7 @@ nvm use

### Package Manager - MANDATORY REQUIREMENT

⚠️ **REQUIRED:** Yarn ^1.22.19 (Yarn 2.0+ is NOT supported)
⚠️ **REQUIRED:** Yarn 1.22.22

**Using wrong Yarn version WILL break bootstrap.**

Expand Down
4 changes: 2 additions & 2 deletions dev_docs/getting_started/setting_up_a_development_env.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -39,12 +39,12 @@ Then, install the latest version of yarn using:
npm install -g yarn
```

If you have Yarn installed, make sure you are using 1.22.19 or later. 2.0 and later are unsupported.
If you have Yarn installed, make sure you are using 1.22.22.

. If you are using an unsupported Yarn version, run:
+
```sh
yarn set version 1.22.19
yarn set version 1.22.22
```

Finally, bootstrap Kibana and install all of the remaining dependencies:
Expand Down
Loading
Loading