-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
lintcheck: support git sources #6686
Conversation
r? @flip1995 (rust-highfive has picked a reviewer for you, use r? to override) |
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.
With dbg macros removed.
clippy_dev/src/lintcheck.rs
Outdated
if tk.versions.is_some() && (tk.git_url.is_some() || tk.git_hash.is_some()) | ||
|| tk.git_hash.is_some() != tk.git_url.is_some() | ||
{ | ||
dbg!(&tk); |
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.
dbg macro
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.
I would have added some kind of error eprintln that prints all these but imo the dbg
macro already prints all the information that I would want in the case of an error.
clippy_dev/src/lintcheck.rs
Outdated
dbg!(error); | ||
dbg!(&cargo_clippy_path); | ||
dbg!(&self.path); |
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.
I don't think we should have dbg macros in our code.
@bors r=flip1995 |
📌 Commit 2bffbfc has been approved by |
☀️ Test successful - checks-action_dev_test, checks-action_remark_test, checks-action_test |
This adds support for git sources in
cargo dev-lintcheck
You can add a git source to
clippy_dev/lintcheck_crates.toml
by having agit_url
and agit_hash
key instead of theversions
array.The repo will the be cloned and checked out to the requested commit before checking it with clippy.
Fixes #6642
changelog: lintcheck: support git sources