-
Notifications
You must be signed in to change notification settings - Fork 210
[Feature Request] Cache builds #447
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
Comments
Related: |
We actually rely on being able to rebuild the same version of a crate multiple times on production, for example when there is a bug in docs.rs or rustdoc and the output is broken. What's your use case for this?
This is intentional, because on production we need to always build on the latest nightly. While developing locally it's annoying though (especially with the huge stds nowadays), so what do you think about adding an environment variable that disables toolchain updates in docker-compose? |
Ok, in that case this probably doesn't make sense to add. I just wanted it for convenience so I don't have to remember which crates have already been built, but I can do that by looking at the website locally.
That might be convenient. It looks like rustup doesn't have an easy way to say 'install this only if it's not installed' but we can just look at the output of |
You can use |
The toolchain thing actually doesn't need a separate environment variable, you can just set |
I don't mind this being all or nothing, but it would be nice in
cratesfyi build crate my_crate_here && cratesfyi build crate my_crate_here
for the second build to be a no-op. I see the line2019/10/26 03:02:42 [DEBUG] cratesfyi::db::add_package: Adding package into database
in the output, so the binary would just have to check whether the database entry exists already, and if so not rebuild the package.Cache invalidation shouldn't be an issue since all versions on crates.io should be immutable.
The text was updated successfully, but these errors were encountered: