-
Notifications
You must be signed in to change notification settings - Fork 7
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
wit-deps always rewrites dependencies #202
Comments
Thanks for the report @jsantell, that makes sense - In your example it would first copy So the fix there would be to either:
or:
or:
Somewhat refs #157 Would you be interested in contributing this feature @jsantell ? Otherwise, could only checking the |
it looks like |
Running
wit-deps
always rewritesdeps/*
even when the sources haven't changed.These redundant outputs has the consequence of an updated timestamp, invalidating caches in more complex builds. It'd be fantastic if the generated
deps
are not written if not needed.From the readme, I'd expect no writes if there are no changes:
STR
tmp/foo/wit/foo.wit
tmp/foo/wit/deps.toml
tmp/printer/wit/printer.wit
When running
cd tmp/foo && wit-deps
,tmp/foo/wit/deps/printer/printer.wit
is always updated. Thetmp/foo/wit/deps.lock
file, however, is only written to if needed.The text was updated successfully, but these errors were encountered: