Support Rust/Cargo constraints when updating artifacts #24870
Replies: 27 comments 7 replies
This comment has been minimized.
This comment has been minimized.
|
Here's what I think for Cargo:
Because we install with |
|
No, don't use rustup. We use the binary release now |
|
Also I think cargo version is bound to rust version. |
|
Hmm. Using rustup would seem like a better solution. I noticed a lot of projects using nightly versions in their tool chain (not sure why) which could also influence cargo capabilities. Cargo seems to have independent releases but be more tightly coupled with rust upgrades than npm is with node |
|
ok, i'll check readding rustup with user mode and register system installed rust version |
|
do you see any errors using latest rust release on repos with nighly versions now? |
|
I'm not sure we'll see errors but we may see a |
|
I think this needs a regular Cargo/Rust user to help clarify requirements. |
|
Hi there, Help us by making a minimal reproduction repository. Before we can start work on your issue we first need to know exactly what's causing the current behavior. A minimal reproduction helps us with this. To get started, please read our guide on creating a minimal reproduction to understand what is needed. We may close the issue if you (or someone else) have not provided a minimal reproduction within two weeks. If you need more time, or are stuck, please ask for help or more time in a comment. Good luck, The Renovate team |
|
I've created a minimal reproduction repo https://github.com/mercxry/cargo-nightly-renovate-minimal-reproduction I'm more than happy to help with whatever can solve this issue faster 😄 |
|
Thanks. I'd first ask: does Renovate need to worry about installing precise versions of both Rust and Cargo, or just Rust? |
|
Cargo comes with Rust, so just Rust, I'd say that the latest of the correct channel (stable, nightly, ...) is what's important |
|
So, channels can be stable, beta or nightly. And the only practical way to support these would be using At runtime (e.g. in the app), could we simply do the following?
Alternatively is there an advantage to preinstalling |
BTW the reason I ask is because although |
I think a better way is that our rust buildpack supports dynamic install and
we can also easily support beta |
|
So we take stable, beta or nightly as an install argument? |
|
i think we can use the normal latest release as now instead of stable. otherwise the tool installer needs to find latest release for stable tag. |
|
How about beta or unstable? |
|
👋 I'm a Rust user which aims to use Renovate, I came here from the Renovate Cargo manager page I have 2 remarks on this issue:
|
|
|
Wearing my |
That sounds good 👍 |
|
Reproduction forked to https://github.com/renovate-reproductions/6365 |
|
Is the approach we have in containerbase today sufficient then? |
|
sorry for the bothering, I encountered this problem while using renovate. It doesn't seem to use the cargo nightly version declared in |
|
Hi there, apologies if this is the wrong thread. I am trying to get renovate to use a nightly rust toolchain but have been unsuccessful. I have Is this still unsupported? |

Uh oh!
There was an error while loading. Please reload this page.
What would you like Renovate to be able to do?
Pick the best version of Rust to use when running
cargo.Describe the solution you'd like
Similar to other managers, however it seems Rust doesn't currently specify minimum versions anywhere link to RFC. So therefore we should default to picking the latest semver version on Docker Hub, but allow the user to specify a valid
constraintvalue in config.All reactions