Skip to content
Open
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
3 changes: 2 additions & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -266,7 +266,8 @@ jobs:

FEATURES=""
# Find out if the `metadata-hash` feature exists for the given package.
if cargo metadata --format-version=1 | jq '.packages[] | select(.name=="${{ matrix.runtime.package }}") | .features' | grep metadata-hash; then
# Exclude glutton runtimes as they don't support metadata-hash
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ser, the point of thks if is to filter out packages that don't have the feature. So, we should fix this and not ignoring particular packages. I remember having fixed this at some point, but maybe my memory is not correct.

if [[ "${{ matrix.runtime.package }}" != *"glutton"* ]] && cargo metadata --format-version=1 | jq '.packages[] | select(.name=="${{ matrix.runtime.package }}") | .features' | grep -q metadata-hash; then
FEATURES="metadata-hash"
fi

Expand Down
Loading