You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have noticed that on quarkus versions after 3.0.0.CR1 config properties set on build are persisted when running the resulting package, which was not the behaviour in quarkus 2. (which I think corresponds to the update to smallrye-config version 3.2.0)
The example I have is when we have a ConfigProperty and set it using an env variable during build time, then when running the application the ConfigProperty is still set even without any env variable.
Is this expected behaviour or a bug? If it is expected how would I add such a config that is not persisted?
Depends... Quarkus has a feature to record configuration during the build in the resulting jar (or native image). The goal is to provide the configuration in runtime if somehow it becomes missing from one environment to another (and not fail the application). But the recording, only applies to @ConfigMapping definitions, so the properties solely used in @ConfigProperty or programmatically should not be recorded.
The issue is not related with SmallRye Config, but it was added during the update: quarkusio/quarkus#31824
Hi,
I have noticed that on quarkus versions after 3.0.0.CR1 config properties set on build are persisted when running the resulting package, which was not the behaviour in quarkus 2. (which I think corresponds to the update to smallrye-config version 3.2.0)
The example I have is when we have a ConfigProperty and set it using an env variable during build time, then when running the application the ConfigProperty is still set even without any env variable.
Reproducer: https://github.com/afonsonf/quarkus-config-cdi
With Quarkus 2 config is empty: https://github.com/afonsonf/quarkus-config-cdi/actions/runs/5756295370/job/15605429637#step:5:8
With Quarkus 3.0.0.Beta1 config is empty: https://github.com/afonsonf/quarkus-config-cdi/actions/runs/5756307141/job/15605462090#step:5:8
With Quarkus 3.0.0.CR1 config is set: https://github.com/afonsonf/quarkus-config-cdi/actions/runs/5756323176/job/15605506130#step:5:8
Is this expected behaviour or a bug? If it is expected how would I add such a config that is not persisted?
The text was updated successfully, but these errors were encountered: