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

Remove --upgrade and --quiet flags from generated output files #1873

Merged
merged 6 commits into from
Feb 23, 2024

Conversation

yasufumy
Copy link
Contributor

Summary

Resolve #1814

I changed the behavior of pip compile to not display --upgrade (-U) and --quiet (-q) for compatibility

@@ -393,7 +404,13 @@ pub(crate) async fn pip_compile(
}

/// Format the `uv` command used to generate the output file.
fn cmd(include_index_url: bool, include_find_links: bool) -> String {
#[allow(clippy::fn_params_excessive_bools)]
Copy link
Contributor Author

Choose a reason for hiding this comment

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

I'm new to Rust and I didn't come up with a good idea to avoid the clippy warning. I'd appreciate it if you suggest a better way.

Copy link
Member

Choose a reason for hiding this comment

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

I think what you have here is ok!Tthough I'm gonna remove the arguments because I think we should just always omit these.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Okay! Thank you for your comment.

@yasufumy yasufumy marked this pull request as ready for review February 23, 2024 07:16
@charliermarsh charliermarsh self-assigned this Feb 23, 2024
@charliermarsh charliermarsh enabled auto-merge (squash) February 23, 2024 19:00
@charliermarsh charliermarsh merged commit 0e2ea66 into astral-sh:main Feb 23, 2024
7 checks passed
@charliermarsh
Copy link
Member

Thanks @yasufumy!

@yasufumy yasufumy deleted the fix/pip-tools-compatibility branch February 24, 2024 04:45
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.

Do not add --upgrade flag to generated output file
2 participants