-
Notifications
You must be signed in to change notification settings - Fork 2.7k
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
Index dependency env vars are not honored #34037
Comments
Have you tried:
? Note that I removed the double underscores. |
Just tried but it doesn't work. The only working combinations are in application.properties or envs with lower case style. |
cc @radcortez |
Please check https://quarkus.io/guides/config-reference#environment-variables. It is simply not possible to correctly map quarkus.index-dependency."problem-details".group-id=
quarkus.index-dependency."problem-details".artifact-id= |
I don't understand how this should work. The doc is clear that config searches several environment variables for a given property name, e.g. for @radcortez Are you talking about the "In some situations, looking up the exact property name is impossible. For instance, when looking up a configuration that is part of a Map, ..." part? If so then maybe we should highlight this part somehow, maybe even extract the paragraph in a separate admonition of type IMPORTANT/CAUTION/WARNING. WDYT? |
Yes, but in this case, the segment If we get a single property in the names list from the ENV source Now, if you also include a property
Correct. |
Ok, how about this: #34366 ? |
Sure. Thanks! |
Describe the bug
According to :
https://quarkus.io/guides/all-config
QUARKUS_INDEX_DEPENDENCY__DEPENDENCY_NAME__GROUP_ID
QUARKUS_INDEX_DEPENDENCY__DEPENDENCY_NAME__ARTIFACT_ID
env vars can be used.
Right now, this is not working. An example will follow.
using application.properties is working :
quarkus.index-dependency.problem-details.group-id=com.github.t1
quarkus.index-dependency.problem-details.artifact-id=problem-details-ri
using lower case env vars is working :
quarkus.index-dependency.problem-details.group-id=com.github.t1
quarkus.index-dependency.problem-details.artifact-id=problem-details-ri
using documented upper case env vars is not working :
QUARKUS_INDEX_DEPENDENCY__PROBLEM_DETAILS__GROUP_ID=com.github.t1
QUARKUS_INDEX_DEPENDENCY__PROBLEM_DETAILS__ARTIFACT_ID=problem-details-ri
Expected behavior
QUARKUS_INDEX_DEPENDENCY__PROBLEM_DETAILS__GROUP_ID=com.github.t1
QUARKUS_INDEX_DEPENDENCY__PROBLEM_DETAILS__ARTIFACT_ID=problem-details-ri
should be honored
Actual behavior
QUARKUS_INDEX_DEPENDENCY__PROBLEM_DETAILS__GROUP_ID=com.github.t1
QUARKUS_INDEX_DEPENDENCY__PROBLEM_DETAILS__ARTIFACT_ID=problem-details-ri
is not honored and the dependency is not added to index
How to Reproduce?
Try to index a dependency using documented environment variables
Output of
uname -a
orver
No response
Output of
java -version
No response
GraalVM version (if different from Java)
No response
Quarkus version or git rev
3.1.0 Final
Build tool (ie. output of
mvnw --version
orgradlew --version
)No response
Additional information
No response
The text was updated successfully, but these errors were encountered: