-
-
Notifications
You must be signed in to change notification settings - Fork 5.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
environment-to-ini tracking bug #27541
Comments
It was designed so. |
@wxiaoguang This is not about deletes, but is about "adds". |
Try to run environment-to-ini with e.g.
These values will not be added to |
I have added a failing test to demonstrate the issue: n9@c708961 |
It's the legacy/unmaintained INI package's bug (or quirk behavior). The section values are inherited. So |
Yes, but this does not work in Line 168 in 4126aad
As mode is resolved using Line 116 in 4126aad
which calls gitea/modules/setting/config_provider.go Lines 118 to 130 in 4126aad
|
Thank you for your detailed report. I think the fix could be this: Fix environment-to-ini inherited key bug #27543 |
Thank you for the fix. |
Fix #27541 The INI package has a quirk: by default, the keys are inherited. When maintaining the keys, the newly added sub key should not be affected by the parent key.
Fix go-gitea#27541 The INI package has a quirk: by default, the keys are inherited. When maintaining the keys, the newly added sub key should not be affected by the parent key.
Backport #27543 by @wxiaoguang Fix #27541 The INI package has a quirk: by default, the keys are inherited. When maintaining the keys, the newly added sub key should not be affected by the parent key. Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
Description
There are known issues with
environment-to-ini
: https://gitea.com/gitea/helm-chart/issues/356However, I have not found an issue this repo, where the implementation of
environment-to-ini
is located.Gitea Version
1.20.5
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?
Currently, the issue only occurs when
environment-to-ini
is explicitly used.However, @silverwind mentioned in #24804 (comment) that there is an intention to merge
enviornment-to-ini
into the codebase. (I am not sure, whether this may cause then also issues in other deployments.)Database
None
Further notes
In my case, the issue occurs during the configuration of "custom logger modes":
This is because
environment-to-ini
is unable to write[log.router] MODE=console
toapp.ini
, as it is a default value.(In this case, however, I am not sure what should be fixed, whether the
environment-to-ini
or "custom logger modes".)The text was updated successfully, but these errors were encountered: