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

feat(wkg-core): Adds new wkg-core crate with lockfile support #91

Merged

Conversation

thomastaylor312
Copy link
Collaborator

This adds a new wit subcommand to wkg that supports building wit packages and fetching/populating a deps directory. I'm sure there is much more we can do here and some obtuse edge cases that aren't supported, but
I did test fetching dependencies for various worlds that used wasi:http and wasi:cli so the basics are functional! In a follow up PR, I'll add some more integration tests

This includes support for an optional config and tests for locking

Signed-off-by: Taylor Thomas <taylor@cosmonic.com>
@thomastaylor312
Copy link
Collaborator Author

Heads up that the test failure is happening because macos runners don't have docker installed by default. I'll figure that out shortly

crates/wkg-core/src/lock.rs Outdated Show resolved Hide resolved
This adds a new `wit` subcommand to `wkg` that supports building wit
packages and fetching/populating a deps directory. I'm sure there is much
more we can do here and some obtuse edge cases that aren't supported, but
I did test fetching dependencies for various worlds that used wasi:http
and wasi:cli. In a follow up PR, I'll add some more integration tests

Signed-off-by: Taylor Thomas <taylor@cosmonic.com>
@thomastaylor312
Copy link
Collaborator Author

Heads up that I added a commit with integration tests. Update isn't tested yet because we need to be pointing at wasi.dev so we can try an update from 0.2.1, but also that doesn't do much yet (it is essentially the same as fetch but forces a new lock file (for example if you changed registries)

Signed-off-by: Taylor Thomas <taylor@cosmonic.com>
@thomastaylor312 thomastaylor312 merged commit eb569de into bytecodealliance:main Sep 26, 2024
3 checks passed
@thomastaylor312 thomastaylor312 deleted the feat/wit_command branch September 26, 2024 18:03
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