From 4463df8224dd257765bf5496f74a830e62a7da9d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Hugo=20H=C3=A4ggmark?= Date: Thu, 11 Sep 2025 09:44:17 +0200 Subject: [PATCH] Chore: fixes detect breaking changes script on new packages (#110927) (cherry picked from commit d5fdcad0b400f15fa93280ec50c653e3117848b2) --- scripts/check-breaking-changes.sh | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/scripts/check-breaking-changes.sh b/scripts/check-breaking-changes.sh index dc1e5741d6b..baa21834dd3 100755 --- a/scripts/check-breaking-changes.sh +++ b/scripts/check-breaking-changes.sh @@ -34,6 +34,11 @@ while IFS=" " read -r -a package; do continue fi + # Skip packages that don't exist in the base (packages introduced in PR) + if [[ ! -f "./base/@$PACKAGE_PATH.tgz" ]]; then + continue + fi + # Extract the npm package tarballs into separate directories e.g. ./base/@grafana-data.tgz -> ./base/grafana-data/ mkdir "$PREV" tar -xf "./base/@$PACKAGE_PATH.tgz" --strip-components=1 -C "$PREV"