aboutsummaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorKN4CK3R2023-01-27 15:12:18 +0100
committerGitHub2023-01-27 15:12:18 +0100
commit51a92cb8218b6702a5a0c8f921eda02456332748 (patch)
tree02cf91dba1e8fcfdee2f5453e6f17492b4e3828d /docs
parent5ff037ef51090b9ac8f521466d99456b236926be (diff)
Use `--index-url` in PyPi description (#22620)
Fixes #22616 Co-authored-by: zeripath <art27@cantab.net>
Diffstat (limited to 'docs')
-rw-r--r--docs/content/doc/packages/pypi.en-us.md2
1 files changed, 2 insertions, 0 deletions
diff --git a/docs/content/doc/packages/pypi.en-us.md b/docs/content/doc/packages/pypi.en-us.md
index 588df71d6..ec2475aea 100644
--- a/docs/content/doc/packages/pypi.en-us.md
+++ b/docs/content/doc/packages/pypi.en-us.md
@@ -77,6 +77,8 @@ For example:
pip install --index-url https://testuser:password123@gitea.example.com/api/packages/testuser/pypi/simple --no-deps test_package
```
+You can use `--extra-index-url` instead of `--index-url` but that makes you vulnerable to dependency confusion attacks because `pip` checks the official PyPi repository for the package before it checks the specified custom repository. Read the `pip` docs for more information.
+
## Supported commands
```