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

clippy subcommand does not work properly when root directory is an executable #1330

Closed
debris opened this issue Nov 8, 2016 · 1 comment
Closed

Comments

@debris
Copy link
Contributor

debris commented Nov 8, 2016

steps to reproduce

  1. Create new project and enter it

    cargo new foo --bin
    cd exe
    
  2. Create subproject and edit Cargo.toml

    cargo new bar
    
    [dependencies]
    bar = { path  = "bar" }
  3. Run cargo clippy for subproject

    cargo clippy -p bar --verbose
    

cargo clippy exits with misleading error message

error: no bin target named `foo`

Other observations:
Above issue does not occur if root directory is a library. It looks like the issue is caused by incorrectly prepending --bin flag instead of --lib here

@camsteffen
Copy link
Contributor

I wasn't able to reproduce this.

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

No branches or pull requests

2 participants