-
Notifications
You must be signed in to change notification settings - Fork 163
ci(rust): verify MSRV of each package #2996
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
Conversation
lidavidm
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks! Just a question on how it's installed
.github/workflows/rust.yml
Outdated
| if: matrix.os == 'ubuntu-latest' | ||
| working-directory: rust | ||
| run: | | ||
| curl -L "https://github.com/foresterre/cargo-msrv/releases/download/v0.18.4/cargo-msrv-x86_64-unknown-linux-gnu-v0.18.4.tgz" | |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
(1) Could we perhaps validate the SHA so that upstream can't change it unexpectedly?
(2) Does it make sense to use cargo install instead (with a specific commit), or a specific version of their Docker image? (With Docker, we could even set this up so that it's run by docker-compose)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for your comment. I too wondered if we needed to check hash.
(The protoc installed within this workflow does not seem to be checked, so I did not too)
How about 38e1223?
- I considered a source install (similar to arrow-rs) first, but decided that a binary download would be better since it takes longer to build without a cache.
- I had not noticed this about Docker images, but it seemed difficult to choose which images to use because images are tagged and pushed at a higher frequency than releases.
lidavidm
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks!
Related to #2739
Verify on CI that the MSRV specification for each package is correct using the command based on the cargo-msrv (copied from the arrow-rs repo).