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

Consider to hide --index-url and --extra-index-url if --emit-index-url flag is not presented #1834

Closed
DrJackilD opened this issue Feb 21, 2024 · 2 comments

Comments

@DrJackilD
Copy link
Contributor

Hey guys! As the title said, I wonder if the uv could hide --index-url and --extra-index-url if the --emit-index-url flag is not presented. Otherwise, if you have a private package index, this data could be accidentally committed to the repository. pip-tools hides the index and extra index both from the command in the comment and of course does not include them in the body of the compiled files.

I've created a small PR to do this, but if this is "by design", than I'll just close it :)

@charliermarsh
Copy link
Member

We hide these by default in the body, right? So would this mainly be to remove them from the comment header?

@DrJackilD
Copy link
Contributor Author

DrJackilD commented Feb 21, 2024

We hide these by default in the body, right? So would this mainly be to remove them from the comment header?

Yes, exactly, only in the header comment, the body of the requirements is looking good

charliermarsh pushed a commit that referenced this issue Feb 23, 2024
## Summary

Hey guys! The motivation described in #1834

## Test Plan

Changed snapshot of the existing tests. `--index-url` and
`--extra-index-url` occur pretty often, so no extra testing is required,
imo.
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