Skip to content

Conversation

@macovedj
Copy link
Contributor

This PR is an initial implementation of the wit functionality described here

Now, whenever defining packages as package {...}, it will be required that some file has package namespace:name; as a header somewhere in the project. Thus there is a single root package, and the other package declarations are nested. It also supports intermixing interface and world definitions between nested package definitions across files, and the packages in a deps folder can also nest packages, which are usable by the root package definition and its nested packages

@macovedj macovedj force-pushed the mixwell branch 2 times, most recently from 8f93655 to c3dd5ec Compare July 25, 2024 18:27
Copy link
Member

@alexcrichton alexcrichton left a comment

Choose a reason for hiding this comment

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

Some initial thoughts jotted down, but I'll hold off on a full review until this is ready.

@macovedj macovedj force-pushed the mixwell branch 2 times, most recently from 969724d to 80e7746 Compare July 28, 2024 21:07
@macovedj macovedj marked this pull request as ready for review July 29, 2024 15:20
* Remove `&mut` argument, make it owned
* Remove new `visit_group`
* Refactor `sort_unresolved_groups` and use it in `push_dir`
* Fix signature of `push_dir`
* Use a normal AST node for nested packages
* Remove some complexity around nested/inlined/etc
* Remove some resolver complexity
Merging doesn't work in this location so don't try to handle it.
@alexcrichton
Copy link
Member

I'll do a final review of this tomorrow and afterwards start to turn the cranks again.

Test this new feature in the roundtrip fuzzer.
@alexcrichton alexcrichton enabled auto-merge July 31, 2024 15:23
@alexcrichton alexcrichton added this pull request to the merge queue Jul 31, 2024
Merged via the queue into bytecodealliance:main with commit e9c71d9 Jul 31, 2024
ydnar added a commit to bytecodealliance/go-modules that referenced this pull request Aug 23, 2024
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