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

Generalize flycheck to arbitrary commands #3804

Merged
merged 2 commits into from
Apr 1, 2020
Merged

Conversation

matklad
Copy link
Member

@matklad matklad commented Apr 1, 2020

bors r+
🤖

@bors
Copy link
Contributor

bors bot commented Apr 1, 2020

Merge conflict

}
FlycheckConfig::CustomCommand { command, args } => {
let mut cmd = Command::new(command);
cmd.args(args);
Copy link
Contributor

Choose a reason for hiding this comment

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

I think it would be nice to support --manifest-path here as well. Maybe some special arg like MANIFEST_PATH that will be replaced here with the manifest path?

Copy link
Member Author

Choose a reason for hiding this comment

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

Why the user can't add --manifest-path=/path/to/Cargo.toml themselves?

Copy link
Contributor

Choose a reason for hiding this comment

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

This would require some dynamic configuration, while the other way would support having a static configuration. It would be solvable, but I think it requires more work for the user than doing it here.

@matklad
Copy link
Member Author

matklad commented Apr 1, 2020

bors r+

@bors
Copy link
Contributor

bors bot commented Apr 1, 2020

@bors bors bot merged commit d03d638 into rust-lang:master Apr 1, 2020
@matklad
Copy link
Member Author

matklad commented Apr 1, 2020 via email

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.

2 participants