-
-
Notifications
You must be signed in to change notification settings - Fork 6k
Closed
Labels
topic/packagestype/questionIssue needs no code to be fixed, only a description on how to fix it yourself.Issue needs no code to be fixed, only a description on how to fix it yourself.
Description
Description
Hi,
i want to Upload a Package to the new Package Registry.
curl --user mg:NE[..]iTTQdC --upload-file ./output/bash-helper-scripts-latest.deb https://<domain>/api/packages/mg/generic/bash-helper-scripts/1.1.1/bash-helper-scripts-latest.deb
.
The package is usccessfully uploaded:
ul 25 17:04:09 gitea gitea[2053835]: 2022/07/25 17:04:09 [62deb0e9] router: completed PUT /api/packages/mg/generic/bash-helper-scripts/1.1.2/bash-helper-scripts-latest.deb for 192.168.2.50:41852, 201 Created in 23.3ms @ generic/generic.go:68(generic.UploadPackage)
and
After a new try with the same Version Number:
Package version already exists
But after that the Package is never shown:
Gitea Version
1.17.0-rc2
Can you reproduce the bug on the Gitea demo site?
Yes
Log Gist
No response
Screenshots
No response
Git Version
No response
Operating System
20.04.4 LTS (Focal Fossa)
How are you running Gitea?
Gitea ist installed with ansible:
https://git.mgrote.net/mg/ansible/src/branch/master/roles/tmaurice.gitea
All Vars:
https://git.mgrote.net/mg/ansible/src/branch/master/group_vars/gitea.yml
Database
SQLite
Metadata
Metadata
Assignees
Labels
topic/packagestype/questionIssue needs no code to be fixed, only a description on how to fix it yourself.Issue needs no code to be fixed, only a description on how to fix it yourself.
Type
Projects
Milestone
Relationships
Development
Select code repository
Activity
noerw commentedon Jul 26, 2022
Did you link the package to the repository?
quotengrote commentedon Jul 26, 2022
Sry to ask, but...
"To link an (already uploaded) package to a repository, open the settings page on that package and choose a repository to link this package to."
But the Repository-Settings dont have such a setting.


And i did not find a API-Endpoint for this.
noerw commentedon Jul 26, 2022
Not the repository settings, but the package settings (
<package-url>/settings
). (You only need to do this once)Yes, looks like the API is missing for this, feel free to change the issue title as a feature request for that API.
quotengrote commentedon Jul 27, 2022
If i go to:
https://git.mgrote.net/api/packages/mg/generic/bash-helper-scripts-mgrote/1.1.33/bash-helper-scripts-mgrote-latest.deb/settings
i get a 404.Same with:
https://git.mgrote.net/api/packages/mg/generic/bash-helper-scripts-mgrote/settings
But without
/settings
i can download the Package.noerw commentedon Jul 27, 2022
I'm talking about the web UI, not the API — as mentioned, there currently is no API for this.
https://git.mgrote.net/mg/-/packages/generic/bash-helper-scripts-mgrote/1.1.33/settings
quotengrote commentedon Jul 27, 2022
Ah, i got it now.
And it worked!
thx
Maybe i/we could improve the docs with a Screenshot where to find that Settings Page?