-
Notifications
You must be signed in to change notification settings - Fork 1k
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
Update rust-toolchain #1702
Comments
rustup now supports rust-toolchain files that look like
take from https://github.com/hermitcore/rusty-hermit/blob/master/rust-toolchain The project uses features only available in the nightly version of the rust compiler, but if we set the channel directly to 'nightly' the CI will download the latest version, which means it uses a different compiler/format checker/... every day. Just a few days ago there was a change in rustfmt, which resulted in every pull request to fail as the latest version of rustfmt wanted to format parts of the code differently. If we could use dependabot to update the rust-toolchain file once a week that would be great 😄 // CC @stlankes |
Yes, the usage of dependabot will be great. Can you that? You are the dependabot expert... |
I think technically it'll be possible, but it will require adding support at all levels of dependabot. I don't think we'll be able to prioritize it in the near future unfortunately. Having said that, what would be some good resources to read up on |
[0] https://rust-lang.github.io/rustup/index.html |
This would be very useful! |
I also think this would be very interesting. Right now we use the lastest stable toolchain, which causes us every once in a while fixing new clippy warnings when they are added.... It would be nice to have a fixed version configured, and dependabot letting us know if a new version can be updated without any issues or not. |
I'm going to share some of the research I was able to find on datasources for updating Dependabot would need to update the
Semver versions can be found from the git tags in https://github.com/rust-lang/rust 2. Full information on dated channels can be found at the following URLs:
However, we only likely need the date itself, which can be found at:
Another potential avenue for both semver and channel version data is the Rust manifest list3. It's a single source for all of this information. Footnotes |
Note that for internal consumption in Azure DevOps, we will need to be able to configure Dependabot to be able to use our internal So Dependabot will need some configuration mechanism to allow the information sources you mention to be configured appropriately, such that public Dependabot would use the public rust-lang channels as you suggest, whereas Azure DevOps Dependabot would be configured to use internal channels to get the same information. In general, "support configuration for using internal Microsoft Rust toolchain and toolchain installer" is its own feature, which overlaps with the general feature for installing toolchains dynamically within Dependabot. @abdulapopoola is going to connect me with that ongoing work. |
Tagging @jakecoffman and @jurre , I suspect this will need proxy changes? |
Can Dependabot update the rust-toolchain file, if it exists?
It should at least update stable to latest stable, and ideally update nightly to latest nightly and beta to latest beta. Updating nightly to stable (eg an unstable feature got stabilised) should probably be a manual change.
The text was updated successfully, but these errors were encountered: