Skip to content
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

BUILD_AND_RUN_TIME_FIXED configuration is not actually fixed #19438

Closed
stuartwdouglas opened this issue Aug 17, 2021 · 1 comment · Fixed by #20932
Closed

BUILD_AND_RUN_TIME_FIXED configuration is not actually fixed #19438

stuartwdouglas opened this issue Aug 17, 2021 · 1 comment · Fixed by #20932
Assignees
Labels
area/config kind/bug Something isn't working

Comments

@stuartwdouglas
Copy link
Member

Describe the bug

At runtime these classes are not initialized with the build time value. You get a warning but they are initialized from the runtime config.

'Specified build/runtime' values also currently have lower priority than the packaged application.properties, so building with system properties to override config only works if the confg is not present in application.properties.

Expected behavior

No response

Actual behavior

No response

How to Reproduce?

No response

Output of uname -a or ver

No response

Output of java -version

No response

GraalVM version (if different from Java)

No response

Quarkus version or git rev

No response

Build tool (ie. output of mvnw --version or gradlew --version)

No response

Additional information

No response

@stuartwdouglas stuartwdouglas added the kind/bug Something isn't working label Aug 17, 2021
stuartwdouglas added a commit to stuartwdouglas/quarkus that referenced this issue Aug 17, 2021
This means that if you set a value using a system property when building
the application it will now override the application.properties that is
packaged in the application (but not an external application.properties
on the file system).

Otherwise the behaviour is very confusing, with build time config values
only taking effect if they are not overriding a property in
application.properties.

Relates to (but does not fully fix) quarkusio#19438
stuartwdouglas added a commit to stuartwdouglas/quarkus that referenced this issue Aug 17, 2021
This means that if you set a value using a system property when building
the application it will now override the application.properties that is
packaged in the application (but not an external application.properties
on the file system).

Otherwise the behaviour is very confusing, with build time config values
only taking effect if they are not overriding a property in
application.properties.

Relates to (but does not fully fix) quarkusio#19438
stuartwdouglas added a commit to stuartwdouglas/quarkus that referenced this issue Aug 17, 2021
This means that if you set a value using a system property when building
the application it will now override the application.properties that is
packaged in the application (but not an external application.properties
on the file system).

Otherwise the behaviour is very confusing, with build time config values
only taking effect if they are not overriding a property in
application.properties.

Relates to (but does not fully fix) quarkusio#19438
stuartwdouglas added a commit to stuartwdouglas/quarkus that referenced this issue Aug 17, 2021
This means that if you set a value using a system property when building
the application it will now override the application.properties that is
packaged in the application (but not an external application.properties
on the file system).

Otherwise the behaviour is very confusing, with build time config values
only taking effect if they are not overriding a property in
application.properties.

Relates to (but does not fully fix) quarkusio#19438
@radcortez radcortez self-assigned this Nov 25, 2021
@radcortez radcortez linked a pull request Nov 25, 2021 that will close this issue
@radcortez
Copy link
Member

Fixed in #20932

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/config kind/bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants