Skip to content

Prioritize inline worlds, not external ones - #1358

Merged
alexcrichton merged 1 commit into
bytecodealliance:mainfrom
alexcrichton:prioritize-inline-worlds
Aug 22, 2025
Merged

Prioritize inline worlds, not external ones#1358
alexcrichton merged 1 commit into
bytecodealliance:mainfrom
alexcrichton:prioritize-inline-worlds

Conversation

@alexcrichton

Copy link
Copy Markdown
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
Copy Markdown
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

yowl commented Aug 21, 2025

Copy link
Copy Markdown
Collaborator

Looks all green, where can I see the failures?

@alexcrichton

Copy link
Copy Markdown
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