"Packages" do not inherit "storage" configuration #10663

Closed
opened 2025-11-02 09:14:47 -06:00 by GiteaMirror · 1 comment
Owner

Originally created by @pat-s on GitHub (Apr 15, 2023).

Description

lfs, attachments and avatars inherit the configuration from storage automatically. This is described in https://docs.gitea.io/en-us/config-cheat-sheet/#storage-storage.

It reads also as if packages would do so as the section ends with "[...] etc.". Yet packages doesn't and one needs to explicitly set

    "storage.packages":
      STORAGE_TYPE: minio

in app.ini to be able to store packages in minio or similar.

This has already been asked in https://github.com/go-gitea/gitea/issues/21300 but the point whether this is desired this way or a bug has not been addressed.
Hence I am not sure whether label this as a "bug" or a "feature request" but it looks to me as if packages should inherit from storage in the same way as lfs, attachments and avatars already do?

In addition, in the documentation at https://docs.gitea.io/en-us/config-cheat-sheet/#packages-packages STORAGE_TYPE is not even listed for packages, which is another reason to assume that it inherits from storage.
Maybe it might also be worth adding STORAGE_TYPE to the PACKAGES section as a parameter to make it more clear?

Gitea Version

1.19.1

Can you reproduce the bug on the Gitea demo site?

No

Log Gist

No response

Screenshots

No response

Git Version

No response

Operating System

No response

How are you running Gitea?

Kubernetes

Database

None

Originally created by @pat-s on GitHub (Apr 15, 2023). ### Description `lfs`, `attachments` and `avatars` inherit the configuration from `storage` automatically. This is described in https://docs.gitea.io/en-us/config-cheat-sheet/#storage-storage. It reads also as if `packages` would do so as the section ends with "[...] etc.". Yet `packages` doesn't and one needs to explicitly set ``` "storage.packages": STORAGE_TYPE: minio ``` in `app.ini` to be able to store packages in `minio` or similar. This has already been asked in https://github.com/go-gitea/gitea/issues/21300 but the point whether this is desired this way or a bug has not been addressed. Hence I am not sure whether label this as a "bug" or a "feature request" but it looks to me as if `packages` should inherit from `storage` in the same way as `lfs`, `attachments` and `avatars` already do? In addition, in the documentation at https://docs.gitea.io/en-us/config-cheat-sheet/#packages-packages `STORAGE_TYPE` is not even listed for `packages`, which is another reason to assume that it inherits from `storage`. Maybe it might also be worth adding `STORAGE_TYPE` to the `PACKAGES` section as a parameter to make it more clear? ### Gitea Version 1.19.1 ### Can you reproduce the bug on the Gitea demo site? No ### Log Gist _No response_ ### Screenshots _No response_ ### Git Version _No response_ ### Operating System _No response_ ### How are you running Gitea? Kubernetes ### Database None
GiteaMirror added the type/bug label 2025-11-02 09:14:47 -06:00
Author
Owner

@lunny commented on GitHub (Apr 17, 2023):

I think #23911 should also fix this problem.

@lunny commented on GitHub (Apr 17, 2023): I think #23911 should also fix this problem.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/gitea#10663