Support Rust/Cargo constraints when updating artifacts #24870
Replies: 26 comments 6 replies
This comment has been minimized.
This comment has been minimized.
-
Here's what I think for Cargo:
Because we install with |
Beta Was this translation helpful? Give feedback.
-
No, don't use rustup. We use the binary release now |
Beta Was this translation helpful? Give feedback.
-
Also I think cargo version is bound to rust version. |
Beta Was this translation helpful? Give feedback.
-
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 |
Beta Was this translation helpful? Give feedback.
-
ok, i'll check readding rustup with user mode and register system installed rust version |
Beta Was this translation helpful? Give feedback.
-
do you see any errors using latest rust release on repos with nighly versions now? |
Beta Was this translation helpful? Give feedback.
-
I'm not sure we'll see errors but we may see a |
Beta Was this translation helpful? Give feedback.
-
I think this needs a regular Cargo/Rust user to help clarify requirements. |
Beta Was this translation helpful? Give feedback.
-
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 |
Beta Was this translation helpful? Give feedback.
-
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 😄 |
Beta Was this translation helpful? Give feedback.
-
Thanks. I'd first ask: does Renovate need to worry about installing precise versions of both Rust and Cargo, or just Rust? |
Beta Was this translation helpful? Give feedback.
-
Cargo comes with Rust, so just Rust, I'd say that the latest of the correct channel (stable, nightly, ...) is what's important |
Beta Was this translation helpful? Give feedback.
-
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 |
Beta Was this translation helpful? Give feedback.
-
BTW the reason I ask is because although |
Beta Was this translation helpful? Give feedback.
-
I think a better way is that our rust buildpack supports dynamic install and
we can also easily support beta |
Beta Was this translation helpful? Give feedback.
-
So we take stable, beta or nightly as an install argument? |
Beta Was this translation helpful? Give feedback.
-
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. |
Beta Was this translation helpful? Give feedback.
-
How about beta or unstable? |
Beta Was this translation helpful? Give feedback.
-
👋 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:
|
Beta Was this translation helpful? Give feedback.
-
|
Beta Was this translation helpful? Give feedback.
-
Wearing my |
Beta Was this translation helpful? Give feedback.
-
That sounds good 👍 |
Beta Was this translation helpful? Give feedback.
-
Reproduction forked to https://github.com/renovate-reproductions/6365 |
Beta Was this translation helpful? Give feedback.
-
Is the approach we have in containerbase today sufficient then? |
Beta Was this translation helpful? Give feedback.
-
sorry for the bothering, I encountered this problem while using renovate. It doesn't seem to use the cargo nightly version declared in |
Beta Was this translation helpful? Give feedback.
-
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
constraint
value in config.Beta Was this translation helpful? Give feedback.
All reactions