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

Locking wit packages and specifying their dependencies #67

Open
macovedj opened this issue Jul 9, 2024 · 0 comments
Open

Locking wit packages and specifying their dependencies #67

macovedj opened this issue Jul 9, 2024 · 0 comments

Comments

@macovedj
Copy link

macovedj commented Jul 9, 2024

I think a good logical first step for addressing lock files is having wasm-pkg.lock or wkg.lock for wit packages. Also it would be nice if the wit cli lived in wasm-pkg-tools.

In discussing this with a few folks, I think it might be worth considering having version requirements determined from the actual contents of the import/include/use statements in wit packages themselves, rather than something like wit.toml as the wit cli does today. The idea here is that errors may be avoided if tools look at a .toml in some places and look in binaries for others. Also current tools are prone to errors if artifacts are published with incorrect versions in their contents that don't match the version being published. While validations at publish time are one solution to this, I think generally we can reduce errors by doing things this way. There's also the added benefit of reducing the number of files.

After deciding whether there should be a .toml for specifying version reqs like today, or whether we want reqs to come from wit package contents, we could probably get started on having wkg support building wit packages across registry packages.

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

No branches or pull requests

1 participant