Skip to content

Commit

Permalink
tools: Fix check-plugin-monorepo-deps.sh with no monorepo deps (#28324)
Browse files Browse the repository at this point in the history
If there are no monorepo package deps, the script prints out an error
like

  crm:  should be at dev-trunk, not

That shouldn't happen, add a check for the situation to avoid it.
  • Loading branch information
anomiex authored Jan 13, 2023
1 parent 2da3fac commit b4a4e80
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions tools/check-plugin-monorepo-deps.sh
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,7 @@ for PLUGIN in "${PLUGINS[@]}"; do

# Check lock file versions
TMP="$(composer info --locked --format=json --working-dir="$DIR" | jq -r --argjson packages "$PACKAGES" '.locked[] | select( $packages[.name] ) | [ .name, .version, $packages[.name].rel ] | @tsv')"
[[ -n "$TMP" ]] || continue
while IFS=$'\t' read -r PKG LOCKVER EXPECTVER; do
if [[ "$WHAT" == "dev" ]]; then
if [[ "$LOCKVER" != "dev-trunk" ]]; then
Expand Down

0 comments on commit b4a4e80

Please sign in to comment.