Skip to content

Conversation

isaacaman
Copy link

This small docs change makes it explicit that the dependency-confusion warning applies to the --extra-index-url option. The previous wording ("Using this option...") can be ambiguous in the surrounding examples.
No code changes — docs-only fix. Closes #13609.

Make the warning in the pip install docs explicitly name --extra-index-url
so readers cannot misinterpret which option the warning refers to.
@sepehr-rs
Copy link
Contributor

Hi @isaacaman, thanks a lot for your contribution to pip!
I'm not part of the triage team yet, so you'll need to wait for an official answer from them.
In the meantime, I noticed that your PR is missing a news file. You can find more details about it here.
If anything about the process is unclear, please feel free to ask.

@isaacaman
Copy link
Author

Hello @sepehr-rs, thanks for the review and for pointing that out. I’ve added a news fragment at news/13609.doc.rst in this branch. Please tell me if you'd like me to do something else.

@sepehr-rs
Copy link
Contributor

Hello @sepehr-rs, thanks for the review and for pointing that out. I’ve added a news fragment at news/13609.doc.rst in this branch. Please tell me if you'd like me to do something else.

Thank you!
I think the pre-commit check is failing because your news file is missing a newline at the end. You can see more details in the report here.
Please let me know if you need any assistance fixing the pre-commit errors.

@isaacaman
Copy link
Author

Hello @sepehr-rs, thanks for the review and for pointing that out. I’ve added a news fragment at news/13609.doc.rst in this branch. Please tell me if you'd like me to do something else.

Thank you! I think the pre-commit check is failing because your news file is missing a newline at the end. You can see more details in the report here. Please let me know if you need any assistance fixing the pre-commit errors.

Wow, All checks are green now 🎉 Thanks a lot!

@sepehr-rs
Copy link
Contributor

Hello @sepehr-rs, thanks for the review and for pointing that out. I’ve added a news fragment at news/13609.doc.rst in this branch. Please tell me if you'd like me to do something else.

Thank you! I think the pre-commit check is failing because your news file is missing a newline at the end. You can see more details in the report here. Please let me know if you need any assistance fixing the pre-commit errors.

Wow, All checks are green now 🎉 Thanks a lot!

Great! Now it should be just a matter of waiting for a maintainer to review and give the final approval.

will ensure it gets chosen over the private package.
Using the ``--extra-index-url`` option to search for packages which are
not in the main repository (for example, private packages) is unsafe.
This is a class of security issue known as dependency confusion — an
Copy link
Contributor

Choose a reason for hiding this comment

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

Just a quick question, is there a reason you chose to remove the https://azure.microsoft.com/en-us/resources/3-ways-to-mitigate-risk-using-private-package-feeds/ link here?

Copy link
Author

Choose a reason for hiding this comment

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

I did it accidentally, I'll add it right now.

Copy link
Contributor

Choose a reason for hiding this comment

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

Thanks!

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

Successfully merging this pull request may close these issues.

Improve warning in pip install documentation
3 participants