-
Notifications
You must be signed in to change notification settings - Fork 2.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
rustfmt: use nightly in CI #5742
Conversation
Current dependencies on/for this PR:
This stack of pull requests is managed by Graphite. |
d5ada93
to
f3941d6
Compare
54ee72c
to
7f69f0d
Compare
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.
Along with this change, can you add a cargo-nightly
script similar to the cargo
script in the monorepo? It literally just needs to do:
#!/usr/bin/env bash
here=$(dirname "$0")
source "${here}"/ci/rust-version.sh nightly
# shellcheck disable=SC2054 # rust_nightly is sourced from rust-version.sh
toolchain="$rust_nightly"
set -x
exec cargo "+${toolchain}" "${@}"
This will make it easier to run fmt
or clippy
since you can just call ./cargo-nightly fmt
or whatever. I've long used shell history to know the right nightly version to use, but a helper script will be good for other devs too. What do you think?
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.
Looks great!
f3941d6
to
173e279
Compare
f18fead
to
3a1ae53
Compare
Merge activity
|
3a1ae53
to
266bc51
Compare
Pull request has been modified.
This PR opts for using the
nightly
channel in CI forrustfmt
.