mirror of
https://github.com/go-gitea/gitea.git
synced 2025-07-15 00:01:25 -04:00
Compare commits
3 Commits
2903afb78f
...
74466eb133
Author | SHA1 | Date | |
---|---|---|---|
|
74466eb133 | ||
|
51a92cb821 | ||
|
5ff037ef51 |
@ -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
|
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
|
## Supported commands
|
||||||
|
|
||||||
```
|
```
|
||||||
|
@ -76,7 +76,7 @@ func validate(bs []byte, datatype interface{}, isJSON bool) error {
|
|||||||
}
|
}
|
||||||
err = sch.Validate(v)
|
err = sch.Validate(v)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
log.Error("migration validation with %s failed for\n%s", schemaFilename, string(bs))
|
log.Error("migration validation with %s failed:\n%#v", schemaFilename, err)
|
||||||
}
|
}
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
@ -4,7 +4,7 @@
|
|||||||
<div class="ui form">
|
<div class="ui form">
|
||||||
<div class="field">
|
<div class="field">
|
||||||
<label>{{svg "octicon-terminal"}} {{.locale.Tr "packages.pypi.install"}}</label>
|
<label>{{svg "octicon-terminal"}} {{.locale.Tr "packages.pypi.install"}}</label>
|
||||||
<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>
|
<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>
|
||||||
</div>
|
</div>
|
||||||
<div class="field">
|
<div class="field">
|
||||||
<label>{{.locale.Tr "packages.pypi.documentation" | Safe}}</label>
|
<label>{{.locale.Tr "packages.pypi.documentation" | Safe}}</label>
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
<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>
|
{{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}}
|
||||||
<div class="ui commit-statuses-popup commit-statuses tippy-target">
|
<div class="ui commit-statuses-popup commit-statuses tippy-target">
|
||||||
<div class="ui relaxed list divided">
|
<div class="ui relaxed list divided">
|
||||||
{{range .Statuses}}
|
{{range .Statuses}}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user