-
Notifications
You must be signed in to change notification settings - Fork 3
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
fix: update Rust if rust in sysreqs #4
Conversation
Would it be more efficient if we updated it every time we rebuild this container (and do this regularly)? |
Given the small number of packages that have dependencies on Rust, I imagined that it would be more efficient to update each time. If the update is done at container build time, the older R version of the container (now R 4.3) would also need to be built each time. |
Ah right, that is still a problem. |
Hmm why does this not run: https://github.com/r-universe-org/build-wasm/actions/runs/13969838927/job/39108621933 |
I think it is just a syntax error in the Dockerfile, I recommend using Heredocs. |
In my opinion, doing a daily Docker Build just for Rust is a waste of energy and storage. Wouldn't once a week/month be enough? |
Another question is that once the nightly toolchain is removed, will it ruin the default toolchain that was set to nightly in the base image? |
I think daily is fine, that way it is clearer to see which day it started failing when there is a problem. Can you check if the current solution works for you for r-release? I don't think we'll be updating the 4.3 image anymore, it will go out of use in a few weeks anyway. |
I am not sure, could you test this? Sadly it seems that we cannot just update the nightly due to #4 (comment) |
Since webR does not quickly follow R releases on regular machines, I think it is important to have packages that work with older versions. In fact, the webR JupyterLite kernel is still based on R 4.3. |
It seems failed.
What about updating only the stable toolchain without updating the nightly toolchain? My main problem is that the first build (regular linux target, not emscripten) fails, so it is possible that the nightly toolchain is unrelated. |
Yes we can try this. Is there any reason you need nightly? |
No, there is not. To begin with, I had to set up an arbitrary toolchain in the configure script to make the build succeed even with the The problem with R-universe is that the first build for the normal target fails and subsequent Emscripten target builds are not executed because the stable toolchain used for nomal target is out of date. |
I'm sorry to hear. Can we just update both the stable and emscripten toolchain in the image? |
In the case of my Certain features in the nightly toolchain may be removed in the future, so the latest nightly toolchain may not necessarily be suitable. |
It seems I am confused why it does work on |
Sorry, I forgot that the default toolchain needs to be changed to stable on the first build. I think that in the R 4.3 job, when the first build failed, |
As I posted at #2 (comment), since Rust in containers becomes outdated over time, it would make sense to update Rust for packages that need it.