-
-
Notifications
You must be signed in to change notification settings - Fork 373
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
Correctly prefer datasource env var over file content #3419
Correctly prefer datasource env var over file content #3419
Conversation
Codecov ReportAttention:
Additional details and impacted files@@ Coverage Diff @@
## main #3419 +/- ##
==========================================
- Coverage 36.36% 36.35% -0.02%
==========================================
Files 228 228
Lines 15401 15407 +6
==========================================
Hits 5601 5601
- Misses 9397 9403 +6
Partials 403 403 ☔ View full report in Codecov by Sentry. |
That was option 5 :-), which I did not want to propose in #3404, due to consistency reasons. Now there are two different precendence rules for environment vars in place. You still need to fix the documentation here:
This is true for all but My referred solution was to stay with the preference rules stated above but use the least precedence way of setting the datasource in the docker image. Anyway, thanks for taking the issue seriously. |
The cli lib we use is working on a v3 ... i have a look if there it is posible to specify the prio. If not atm you can suggest that :) |
If you use a file for overriding the default value instead of setting the env var directly, it is the least precedence way. So the only problem is how we set up the Dockerfile. This makes a setting, which is meant to be overridden a de facto hard coded value thus eliminating the flexibility urfave/cli provides. |
Tearing down https://woodpecker-ci-woodpecker-pr-3419.surge.sh |
close #3404
fixes #3389