Skip to content

Add clippy to the tools list#1461

Merged
alexcrichton merged 1 commit intorust-lang:masterfrom
yaahc:rustup-clippy-driver
Jul 16, 2018
Merged

Add clippy to the tools list#1461
alexcrichton merged 1 commit intorust-lang:masterfrom
yaahc:rustup-clippy-driver

Conversation

@yaahc
Copy link
Copy Markdown
Member

@yaahc yaahc commented Jul 12, 2018

@yaahc yaahc force-pushed the rustup-clippy-driver branch from 5a18744 to 10f4a78 Compare July 13, 2018 16:36
@Manishearth
Copy link
Copy Markdown
Member

r? @kennytm @Diggsey


static TOOLS: &'static [&'static str] =
&["rustc", "rustdoc", "cargo", "rust-lldb", "rust-gdb", "rls"];
&["rustc", "rustdoc", "cargo", "rust-lldb", "rust-gdb", "rls", "clippy-driver", "cargo-clippy"];
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

So if I remember the discussion on discord correctly, we don't actually need clippy-driver here, right?

"rls",
"rustfmt",
"cargo-fmt",
"clippy-driver",
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

same here

@yaahc yaahc force-pushed the rustup-clippy-driver branch from 10f4a78 to 7e1bac0 Compare July 16, 2018 15:45
@yaahc
Copy link
Copy Markdown
Member Author

yaahc commented Jul 16, 2018

forgot to push before leaving for the weekend. Should be good now

@yaahc yaahc force-pushed the rustup-clippy-driver branch from 7e1bac0 to 7553501 Compare July 16, 2018 15:47
@alexcrichton
Copy link
Copy Markdown
Member

Thanks! Can this also update DUP_TOOLS below the definition of TOOLS? That'll help encourage users to uninstall the cargo install'd version, if it exists, before adding the rustup component

@oli-obk
Copy link
Copy Markdown
Contributor

oli-obk commented Jul 16, 2018

@alexcrichton While that made sense for rustfmt (because there was stable rustfmt), for clippy it doesn't make much sense. If you turn on the component, your manually installed clippy was probably already broken and will never work again.

I think we should just silently overwrite an existing installation

@alexcrichton
Copy link
Copy Markdown
Member

Ah yes, an excellent point!

@alexcrichton alexcrichton merged commit 1ccd706 into rust-lang:master Jul 16, 2018
@alexcrichton
Copy link
Copy Markdown
Member

For those following along, this is now published as rustup 1.13.0 and should be good to go!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants