File tree Expand file tree Collapse file tree 3 files changed +4
-2
lines changed
docs/content/doc/packages Expand file tree Collapse file tree 3 files changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -77,6 +77,8 @@ For example:
77
77
pip install --index-url https://testuser:password123@gitea.example.com/api/packages/testuser/pypi/simple --no-deps test_package
78
78
```
79
79
80
+ 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.
81
+
80
82
## Supported commands
81
83
82
84
```
Original file line number Diff line number Diff line change 4
4
<div class="ui form">
5
5
<div class="field">
6
6
<label>{{svg "octicon-terminal"}} {{.locale.Tr "packages.pypi.install"}}</label>
7
- <div class="markup"><pre class="code-block"><code>pip install --extra- index-url {{AppUrl}}api/packages/{{.PackageDescriptor.Owner.Name}}/pypi/simple {{.PackageDescriptor.Package.Name}}</code></pre></div>
7
+ <div class="markup"><pre class="code-block"><code>pip install --index-url {{AppUrl}}api/packages/{{.PackageDescriptor.Owner.Name}}/pypi/simple {{.PackageDescriptor.Package.Name}}</code></pre></div>
8
8
</div>
9
9
<div class="field">
10
10
<label>{{.locale.Tr "packages.pypi.documentation" | Safe}}</label>
Original file line number Diff line number Diff line change 1
- <a class="ui link commit-statuses-trigger vm" {{if eq (len .Statuses) 1}}{{$status := index .Statuses 0}}{{if $status.TargetURL}} href="{{$status.TargetURL}}"{{end}}{{end}} >{{template "repo/commit_status" .Status}}</a>
1
+ {{if eq (len .Statuses) 1}}{{$status := index .Statuses 0}}{{if $status.TargetURL}}<a class="ui link commit-statuses-trigger vm" href="{{$status.TargetURL}}">{{template "repo/commit_status" .Status}}</a>{{end}}{{end}}
2
2
<div class="ui commit-statuses-popup commit-statuses tippy-target">
3
3
<div class="ui relaxed list divided">
4
4
{{range .Statuses}}
You can’t perform that action at this time.
0 commit comments