Skip to content
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

Merged
merged 6 commits into from
Feb 7, 2021
Merged

Conversation

matthiaskrgr
Copy link
Member

This adds support for git sources in cargo dev-lintcheck

You can add a git source to clippy_dev/lintcheck_crates.toml by having a git_url and a git_hash key instead of the versions 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

@rust-highfive
Copy link

r? @flip1995

(rust-highfive has picked a reviewer for you, use r? to override)

@rust-highfive rust-highfive added the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties label Feb 6, 2021
Copy link
Member

@flip1995 flip1995 left a 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.

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);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

dbg macro

Copy link
Member Author

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.

Comment on lines 168 to 170
dbg!(error);
dbg!(&cargo_clippy_path);
dbg!(&self.path);
Copy link
Member

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.

@matthiaskrgr
Copy link
Member Author

@bors r=flip1995

@bors
Copy link
Contributor

bors commented Feb 7, 2021

📌 Commit 2bffbfc has been approved by flip1995

@bors
Copy link
Contributor

bors commented Feb 7, 2021

⌛ Testing commit 2bffbfc with merge c1ce78f...

@bors
Copy link
Contributor

bors commented Feb 7, 2021

☀️ Test successful - checks-action_dev_test, checks-action_remark_test, checks-action_test
Approved by: flip1995
Pushing c1ce78f to master...

@bors bors merged commit c1ce78f into rust-lang:master Feb 7, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
S-waiting-on-review Status: Awaiting review from the assignee but also interested parties
Projects
None yet
Development

Successfully merging this pull request may close these issues.

lintcheck: add support for git crates
4 participants