-
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
Warning "Build time property cannot be changed at runtime: quarkus.native.builder-image.pull" #36291
Comments
By the way, this makes me think that we probably end up with unnecessary information in native executables... why would such an executable need to know that it was built with |
Correct, but the Quarkus CLI, is a Quarkus application, subject to the same validations of any Quarkus app. Maybe we need to ignore such validations for the Quarkus CLI.
The config is already If it makes sense for this property, you can produce a |
I tend to think it makes sense for all properties that are very clearly only relevant when building... Which I suspect is a lot. Thanks for the suggestion, I'll look into adding that build item. |
Describe the bug
I set the following environment variable on my laptop, because I don't want Quarkus to download GraalVM/Mandrel container images every two weeks when the floating tags get updated (see #33749):
It works just fine, but now every time I run a recent Quarkus application (even the
quarkus
CLI!), I get this warning:Obviously the warning is irrelevant here, since I'm not trying to build an application.
Expected behavior
I would rather not get a warning (or worse, a failure for applications that set
quarkus.configuration.build-time-mismatch-at-runtime = fail
).Actual behavior
I get a warning (or worse, a failure for applications that set
quarkus.configuration.build-time-mismatch-at-runtime = fail
).How to Reproduce?
Assuming you have the
quarkus
CLI installed: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
No response
Build tool (ie. output of
mvnw --version
orgradlew --version
)No response
Additional information
One workaround would be for me to also set the following environment variable:
... if only
ignore
was supported. It's not.But even if it was supported, I don't think it would be a good idea, as I would effectively ignore all such problems in all applications I work on, which is taking too much risk.
I wonder if the solution would not be simply to change the phase of configuration property
quarkus.native.builder-image.pull
, and make itBUILD
instead ofBUILD_AND_RUNTIME_FIXED
? I don't see a good reason to have that property available at runtime. The main problem with this is that I would need to move the property to a whole different config mapping... seems messy.Any opinion @radcortez ?
The text was updated successfully, but these errors were encountered: