Use wit-deps to manage all wit dependencies#8928
Use wit-deps to manage all wit dependencies#8928iawia002 wants to merge 1 commit intobytecodealliance:mainfrom
Conversation
6ca9bc7 to
2f30e90
Compare
|
Thanks for the PR! While I don't disagree that this is better than bash in terms of readability this has a downside of depending on |
What I’m doing in a project of mine at the moment is to use wit-deps in a test to check that everything is up to date (but to also keep the wit field checked in … well technically my solution uses git submodules to avoid checking the files in directly, but that doesn’t matter for the test) - this makes the dependency a dev-dependency only so that it should not burden any downstream users |
|
Seconding what Alex said: we should run this in CI, not on every single build of the |
|
Thank all for your feedback. I understand your concerns and have made some improvements. I will no longer use Going back to the original reason why I wanted to make this change:
PTAL if this change is reasonable. |
|
Functionally this is much better, thanks! Personally though I'd at least personally prefer to stick to the bash script for now. I'm worried to pick up another tool as part of our build which much of us don't understand and it's not buying us much over a bash script. I don't disagree that the bash script is going to get a bit more complicated over time but I think the complexity is relatively manageable. For example it's not really an issue that HTTP WIT files are part of the Some other reasons I'd prefer to stick to a script for now:
Overall I think it may just not be the right time to switch away from bash scripts. If the shell script could go away entirely I think that's the right time to migrate to a different tool, but I don't think that we're there yet. |
This patch uses the wit-deps package to manage all wit dependencies (except wasi-nn for now):
wasmtime/ci/vendor-wit.sh
Lines 40 to 43 in 7caca16
I believe this is a more understandable and automated approach compared to the bash script, as it will automatically synchronize these wit dependencies during the build process.