Skip to content
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

Fix the exports key for packages-with-versions #677

Merged
merged 1 commit into from
Sep 26, 2023

Conversation

alexcrichton
Copy link
Member

Previously one location looking up exports would account for the version and another wouldn't which caused the ERROR case to leak through by accident. These are now kept in sync to ensure that the right errors get surfaced.

@dicej
Copy link
Collaborator

dicej commented Sep 25, 2023

Noticing that the package name is no longer part of the key; would this cause an issue when exporting two interfaces with the same name but different packages, e.g. foo:bar/x and some:other/x?

@alexcrichton
Copy link
Member Author

Oh the package name should still be there, that's a mistake if I left it out by accident. My intention was that previously you'd specify a:b/c/resource but now you have to specify a:b/c@0.0.0/resource instead

Previously one location looking up `exports` would account for
the version and another wouldn't which caused the `ERROR` case to leak
through by accident. These are now kept in sync to ensure that the right
errors get surfaced.
@dicej
Copy link
Collaborator

dicej commented Sep 26, 2023

Ok, I see now. It's Resolve::id_of that's doing the work of providing a fully-qualified identifier now. Thanks for clarifying.

@alexcrichton alexcrichton merged commit 08de0ea into bytecodealliance:main Sep 26, 2023
9 checks passed
@alexcrichton alexcrichton deleted the fix-verisons branch September 26, 2023 17:29
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.

2 participants