Use wit-dep tool to automatically manage dependency vendoring#23
Use wit-dep tool to automatically manage dependency vendoring#23lukewagner merged 3 commits intomainfrom
wit-dep tool to automatically manage dependency vendoring#23Conversation
rvolosatovs
left a comment
There was a problem hiding this comment.
LGTM, just note that since you depend on main branches of these dependencies, you'd need to both delete the wit/deps.lock and clear the cache to pull in any updates in 0.2.1
depit assumes URL contents to be immutable.
Cache is located at appropriate https://docs.rs/directories/5.0.0/directories/struct.ProjectDirs.html#method.cache_dir with depit as the project name, and it's also printed with RUST_LOG=debug
Perhaps something like bytecodealliance/wit-deps#15 could be useful to address this use case better
|
Ah, good point. I had wondered whether it was better to use |
Laziness is a virtue, I really love this approach, it requires checking-in |
|
Awesome, thanks! I just updated the README.md to refer to |
depit tool to automatically manage dependency vendoringwit-dep tool to automatically manage dependency vendoring
This PR uses @rvolosatovs's
depittool to automate the currently-manual steps of copying the Wit documents from other WASI proposal repos. (Thanks Roman!) Over time we expect this tooling to evolve further, but this seems like a pretty useful and super-easy-to-adopt short-term improvement.@Mossaka I think this also goes a long way to addressing the concerns about manual duplication in #20, so I think it resolves that issue too?
(The
world.witfiles are added by actually runningdepitbefore committing; everything else was in sync already.)cc @pchickey @sunfishcode @peterhuene