Skip to content

Commit

Permalink
more diagnostics
Browse files Browse the repository at this point in the history
  • Loading branch information
dherman committed Mar 25, 2024
1 parent b7ef1cf commit d4a616c
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions src/cli/update-cargo-messages.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,12 @@ cargo_messages_version=$(npm view cargo-messages version)

read -a platforms <<< $( (cd ../../pkgs/cargo-messages && node ../../dist/cli list-platforms) | jq -r 'keys | join("\n")' )

echo "[update-cargo-messages.sh] platforms: ${platforms[@]}"

for platform in ${platforms[@]} ; do
echo "npm i --omit=optional -E -O @cargo-messages/$platform@$cargo_messages_version"
npm i --omit=optional -E -O @cargo-messages/$platform@$cargo_messages_version
echo "[update-cargo-messages.sh] npm i --omit=optional -E -O @cargo-messages/$platform@$cargo_messages_version"
npm i --omit=optional -E -O @cargo-messages/$platform@$cargo_messages_version || echo "❌ failed to update @cargo-messages/$platform"
done

echo "npm i --omit=optional cargo-messages@$cargo_messages_version"
npm i --omit=optional cargo-messages@$cargo_messages_version
echo "[update-cargo-messages.sh] npm i --omit=optional cargo-messages@$cargo_messages_version"
npm i --omit=optional cargo-messages@$cargo_messages_version || echo "❌ failed to update cargo-messages"

0 comments on commit d4a616c

Please sign in to comment.