From 016940cffaa51aa7d76d48372b8dcd0968cf1e0b Mon Sep 17 00:00:00 2001 From: Georgios Andrianakis Date: Wed, 12 Jun 2024 09:03:54 +0300 Subject: [PATCH] Only set tmp dir for Lambda in normal mode Fixes: #41124 --- .../lambda/http/deployment/AmazonLambdaHttpProcessor.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/extensions/amazon-lambda-rest/deployment/src/main/java/io/quarkus/amazon/lambda/http/deployment/AmazonLambdaHttpProcessor.java b/extensions/amazon-lambda-rest/deployment/src/main/java/io/quarkus/amazon/lambda/http/deployment/AmazonLambdaHttpProcessor.java index 98de0706785c0..22ee1169136ba 100644 --- a/extensions/amazon-lambda-rest/deployment/src/main/java/io/quarkus/amazon/lambda/http/deployment/AmazonLambdaHttpProcessor.java +++ b/extensions/amazon-lambda-rest/deployment/src/main/java/io/quarkus/amazon/lambda/http/deployment/AmazonLambdaHttpProcessor.java @@ -24,6 +24,7 @@ import io.quarkus.amazon.lambda.http.model.MultiValuedTreeMap; import io.quarkus.arc.deployment.AdditionalBeanBuildItem; import io.quarkus.arc.deployment.UnremovableBeanBuildItem; +import io.quarkus.deployment.IsNormal; import io.quarkus.deployment.annotations.BuildProducer; import io.quarkus.deployment.annotations.BuildStep; import io.quarkus.deployment.annotations.ExecutionTime; @@ -92,7 +93,7 @@ public void registerReflectionClasses(BuildProducer re /** * Lambda provides /tmp for temporary files. Set vertx cache dir */ - @BuildStep + @BuildStep(onlyIf = IsNormal.class) void setTempDir(BuildProducer systemProperty) { systemProperty.produce(new SystemPropertyBuildItem(CACHE_DIR_BASE_PROP_NAME, "/tmp/quarkus")); }