From a35a04e1a4e0f4e66bd07f2d1cd0dc10b9f901bb Mon Sep 17 00:00:00 2001 From: Edoardo Tenani Date: Mon, 14 Feb 2022 15:34:07 +0100 Subject: [PATCH] add missing copy for tf lock file Terraform Lock File support has been added https://github.com/elastic/package-spec/issues/269 but was not used by Terraform Deployer as the file was not copied from the stage folder to the workspace. cp * does not copy hidden files. This commit adds copy for hidden files from the stage to the workspace folder, so it's correctly picked up by Terraform in tests. --- internal/install/_static/terraform_deployer_run.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/internal/install/_static/terraform_deployer_run.sh b/internal/install/_static/terraform_deployer_run.sh index c7e8db469..3fa8ed792 100644 --- a/internal/install/_static/terraform_deployer_run.sh +++ b/internal/install/_static/terraform_deployer_run.sh @@ -4,7 +4,9 @@ set -euo pipefail # Terraform code may rely on content from other files than .tf files (es json, zip, html, text), so we copy all the content over # See more: https://github.com/elastic/elastic-package/pull/603 -cp -r /stage/* /workspace +# NOTE: must copy hidden files too (supported by "/.") +# See more: https://github.com/elastic/package-spec/issues/269 +cp -r /stage/. /workspace cleanup() { r=$?