-
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
Environment variable is not read #37273
Comments
@zakkak Bug reproduction follows: https://github.com/vpaiva/quarkus-env-reproducer-gradle |
@aloubyansky Is there anything you can do as an alternative to this problem? This is making it impossible to update quarkus services. |
Also ping @radcortez |
@radcortez Is there anything you can do as an alternative to this problem? This is making it impossible to update quarkus services. |
You can use the actual property name instead of the expression. For instance, for the reproducer, |
It really works. Thanks @radcortez! |
@radcortez Is there a way to prioritize this bug? |
I can try to have a look, but this is not an issue with Config directly but with the Gradle plugin. |
Describe the bug
When declaring an expression, it is not retrieved via Environment in native mode.
I've been using this way since version 1.5 of quarkus.
Expected behavior
I want my application to recognize the env property.
Actual behavior
No response
How to Reproduce?
I declare the configuration in application.yaml:
quarkus:
consul-config:
agent:
host-port: "${consul.host:localhost}:8500"
I do one export CONSUL_HOST=192.168.1.5
Output of
uname -a
orver
No response
Output of
java -version
17.0.9
Mandrel or GraalVM version (if different from Java)
mandrel
Quarkus version or git rev
3.5.3
Build tool (ie. output of
mvnw --version
orgradlew --version
)gradle 8.4
Additional information
No response
The text was updated successfully, but these errors were encountered: