Replies: 2 comments 10 replies
-
I'm curious if you could further elaborate why we need to check in a generated wit file if we also have a lock file? From what I gather it sounds like under this design each dependency will be referenced three times in each project:
In Node.js we used to vendor deps before lock files were added. But that basically stopped being necessary after lock files were added. So I guess I'm wondering what is different in this model that we would need both a lock file and vendoring? |
Beta Was this translation helpful? Give feedback.
-
One thing that wasn't touched on in the above proposal is the relation between the generated WIT file and any user-authored WIT. My understanding is that there are two cases:
In the former case, I was imagining there is a In the latter case, I imagine that there is a different Does that sound right? |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
With the addition of "nested packages" it is now possible to represent multiple packages in a single WIT file. We'd like to use this feature to set a new convention for the on-disk structure of WIT packages that are managed by
wasm-pkg-tools
:wkg.lock
(exact path TBD)wit/resolved.wit
file (name to be bikeshod) with a boilerplate comment at the top e.g. "this file is generated; edits will be overwritten, etc"resolved.wit
file should be "deterministicishly" generated from thewit.lock
, but will still likely be committed to source control in many cases to avoid typical registry auth / CI tooling issues. To help with the potential synchronization issue this can cause, there should be some kind of validation command e.g.wkg wit pull --check
(?) to validate that theresolved.wit
is up-to-date with thewit.lock
.Beta Was this translation helpful? Give feedback.
All reactions