Skip to content

Better handle stability attributes when merging WIT packages#1669

Merged
alexcrichton merged 1 commit intobytecodealliance:mainfrom
alexcrichton:fix-stability
Jul 15, 2024
Merged

Better handle stability attributes when merging WIT packages#1669
alexcrichton merged 1 commit intobytecodealliance:mainfrom
alexcrichton:fix-stability

Conversation

@alexcrichton
Copy link
Member

This commit updates the logic when merging WIT packages together to better handle stability. This isn't perfect but it should suffice to fix the issue in #1666. The general idea is that stability is something that needs to be specifically handled during the merging process and it erroneously wasn't processed at all before. This commit fixes that and fixes a panic along the way. Stability is now inherited if possible but generates an error if two packages disagree.

Closes #1666

This commit updates the logic when merging WIT packages together to
better handle stability. This isn't perfect but it should suffice to fix
the issue in bytecodealliance#1666. The general idea is that stability is something that
needs to be specifically handled during the merging process and it
erroneously wasn't processed at all before. This commit fixes that and
fixes a panic along the way. Stability is now inherited if possible but
generates an error if two packages disagree.

Closes bytecodealliance#1666
@alexcrichton alexcrichton added this pull request to the merge queue Jul 15, 2024
Merged via the queue into bytecodealliance:main with commit bd9eb47 Jul 15, 2024
@alexcrichton alexcrichton deleted the fix-stability branch July 15, 2024 16:25
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.

Stability set to Unknown intially and triggering assert on non-empty value coming in

2 participants