Skip to content

Prioritize inline worlds, not external ones #1358

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged

Conversation

alexcrichton
Copy link
Member

When multiple paths are used the generate! macro will fail if they all contain a world and no world is otherwise specified. This then additionally affected when using inline plus loading auxiliary WIT from a paths directory (either explicitly or the default wit). This commit switches the logic to prioritizing worlds in the inline block because if that's being specified it's pretty likely the exact one that wants to be used.

When multiple `path`s are used the `generate!` macro will fail if they
all contain a `world` and no world is otherwise specified. This then
additionally affected when using `inline` plus loading auxiliary WIT
from a `paths` directory (either explicitly or the default `wit`). This
commit switches the logic to prioritizing worlds in the `inline` block
because if that's being specified it's pretty likely the exact one that
wants to be used.
@alexcrichton alexcrichton added this pull request to the merge queue Aug 20, 2025
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Aug 20, 2025
@alexcrichton alexcrichton added this pull request to the merge queue Aug 20, 2025
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Aug 20, 2025
@alexcrichton alexcrichton added this pull request to the merge queue Aug 21, 2025
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Aug 21, 2025
@alexcrichton
Copy link
Member Author

cc @bytecodealliance/dotnet-core do y'all know what's going on with the C# failures in this PR? I've retried a few times over a day or so and so it doesn't seem spurious

@yowl
Copy link
Collaborator

yowl commented Aug 21, 2025

Looks all green, where can I see the failures?

@alexcrichton
Copy link
Member Author

This is failing when going through the merge queue, so you'll need to hit "View details" buttons on the right. An example is https://github.com/bytecodealliance/wit-bindgen/actions/runs/17137088638/job/48615613853

@alexcrichton alexcrichton added this pull request to the merge queue Aug 22, 2025
Merged via the queue into bytecodealliance:main with commit 0e2201b Aug 22, 2025
22 checks passed
@alexcrichton alexcrichton deleted the prioritize-inline-worlds branch August 22, 2025 23:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants