Skip to content

Commit

Permalink
Merge pull request #34811 from zakkak/2023-07-18-fail-upx-with-remote…
Browse files Browse the repository at this point in the history
…-container

Fail build when combining compression with remote-container-build
  • Loading branch information
gsmet authored Oct 5, 2023
2 parents b71b1e0 + 9a53a94 commit 62ef5f6
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,10 @@ public void compress(NativeConfig nativeConfig, NativeImageRunnerBuildItem nativ
if (!runUpxFromHost(upxPathFromSystem.get(), image.getPath().toFile(), nativeConfig)) {
throw new IllegalStateException("Unable to compress the native executable");
}
} else if (nativeConfig.remoteContainerBuild()) {
log.errorf("Compression of native executables is not yet implemented for remote container builds.");
throw new IllegalStateException(
"Unable to compress the native executable: Compression of native executables is not yet supported for remote container builds");
} else if (nativeImageRunner.isContainerBuild()) {
log.infof("Running UPX from a container using the builder image: " + effectiveBuilderImage);
if (!runUpxInContainer(image, nativeConfig, effectiveBuilderImage)) {
Expand Down

0 comments on commit 62ef5f6

Please sign in to comment.