-
Notifications
You must be signed in to change notification settings - Fork 983
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
ci: use workspace inheritance to enforce lints in all crates #4575
Conversation
@thomaseizinger Please take a look. If any changes are needed, please let me know. if the |
Thanks for getting this started :) |
@thomaseizinger I have a quick question on
Please check clippy::useless_attribute |
That is because it is a |
This pull request has merge conflicts. Could you please resolve them @binsta? 🙏 |
@binsta Once you've resolved the merge conflicts, CI can run again :) |
Btw, merging master is fine, we don't really do rebases here! See https://github.com/libp2p/rust-libp2p/blob/master/CONTRIBUTING.md#we-squash-merge-pull-requests. |
@thomaseizinger Please review every conflict that has been resolved. |
Thank you, Hereafter ill follow the same, methodology |
Thanks! They weren't quite resolved but I went ahead and fixed them for you :) |
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.
CI for clippy is passing which is nice! See https://github.com/libp2p/rust-libp2p/actions/runs/6386769096/job/17333995887?pr=4575.
I think we can merge this as is and simply swap out the clippy jobs again once this hits stable!
@thomaseizinger Please take a look |
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! This is good to go from my end :)
@libp2p/rust-libp2p-maintainers: Starting with this PR, you'll have to use nightly Rust for linting locally for a limited time. It is generally a good idea to use nightly Rust for local development because it helps detecting compiler bugs early. Our CI enforces that things work with stable anyway. This feature is due to be stabilized in 1.74 I think hence I think it makes sense to already start using this. Once it is actually stable, we can switch CI back to running on the current stable and beta. If there are no concerns, I'll merge this in the upcoming days. |
This pull request has merge conflicts. Could you please resolve them @binsta? 🙏 |
Most notably, nothing changes for users that are currently using stable rust and run Or we just retain the alias altogether until |
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
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.
As discussed in our 1on1, feel free to go ahead here @thomaseizinger.
Approvals have been dismissed because the PR was updated after the send-it
label was applied.
Approvals have been dismissed because the PR was updated after the send-it
label was applied.
Starting with nightly-2023-09-10, the `[lints]` section in `Cargo.toml` files is stable. Together with workspace inheritance, this can be used to declare all lints we want to enforce in a single place. Resolves: libp2p#4484. Pull-Request: libp2p#4575.
Starting with nightly-2023-09-10, the `[lints]` section in `Cargo.toml` files is stable. Together with workspace inheritance, this can be used to declare all lints we want to enforce in a single place. Resolves: libp2p#4484. Pull-Request: libp2p#4575.
Description
Starting with nightly-2023-09-10, the
[lints]
section inCargo.toml
files is stable. Together with workspace inheritance, this can be used to declare all lints we want to enforce in a single place.Resolves: #4484.
Change checklist