Skip to content

Commit 62ef5f6

Browse files
authored
Merge pull request quarkusio#34811 from zakkak/2023-07-18-fail-upx-with-remote-container
Fail build when combining compression with remote-container-build
2 parents b71b1e0 + 9a53a94 commit 62ef5f6

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

core/deployment/src/main/java/io/quarkus/deployment/pkg/steps/UpxCompressionBuildStep.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,10 @@ public void compress(NativeConfig nativeConfig, NativeImageRunnerBuildItem nativ
5151
if (!runUpxFromHost(upxPathFromSystem.get(), image.getPath().toFile(), nativeConfig)) {
5252
throw new IllegalStateException("Unable to compress the native executable");
5353
}
54+
} else if (nativeConfig.remoteContainerBuild()) {
55+
log.errorf("Compression of native executables is not yet implemented for remote container builds.");
56+
throw new IllegalStateException(
57+
"Unable to compress the native executable: Compression of native executables is not yet supported for remote container builds");
5458
} else if (nativeImageRunner.isContainerBuild()) {
5559
log.infof("Running UPX from a container using the builder image: " + effectiveBuilderImage);
5660
if (!runUpxInContainer(image, nativeConfig, effectiveBuilderImage)) {

0 commit comments

Comments
 (0)