Skip to content

Commit 9686b0d

Browse files
committed
Using parents for cp
1 parent f92eb35 commit 9686b0d

File tree

2 files changed

+4
-5
lines changed

2 files changed

+4
-5
lines changed

Makefile

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
11
SHELL=/usr/bin/env bash -euo pipefail
22

3-
PYTHON_PROJECT_DIRS_WITH_UNIT_TESTS = ack_backend backend delta_backend filenameprocessor mesh_processor recordprocessor redis_sync lambdas/id_sync
3+
PYTHON_PROJECT_DIRS_WITH_UNIT_TESTS = ack_backend backend delta_backend filenameprocessor mesh_processor recordprocessor redis_sync lambdas/id_sync lambdas/shared
44
PYTHON_PROJECT_DIRS = e2e e2e_batch $(PYTHON_PROJECT_DIRS_WITH_UNIT_TESTS)
5-
PYTHON_LAMBDA_DEPENDENCIES = lambdas/shared
65

76
#Installs dependencies using poetry.
87
install-python:
@@ -48,7 +47,7 @@ _dist_include="pytest.ini poetry.lock poetry.toml pyproject.toml Makefile build/
4847
#Create /dist/ sub-directory and copy files into directory
4948
release: clean publish build-proxy
5049
mkdir -p dist
51-
for f in $(_dist_include); do cp -r $$f dist; done
50+
for f in $(_dist_include); do cp --parents -r $$f dist; done
5251
cp ecs-proxies-deploy.yml dist/ecs-deploy-sandbox.yml
5352
cp ecs-proxies-deploy.yml dist/ecs-deploy-internal-qa-sandbox.yml
5453
cp ecs-proxies-deploy.yml dist/ecs-deploy-internal-dev-sandbox.yml

terraform/id_sync_lambda.tf

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# Define the directory containing the Docker image and calculate its SHA-256 hash for triggering redeployments
22
locals {
3-
shared_dir = abspath("${path.root}/../shared")
4-
id_sync_lambda_dir = abspath("${path.root}/../id_sync")
3+
shared_dir = abspath("${path.root}/../lambdas/shared")
4+
id_sync_lambda_dir = abspath("${path.root}/../lambdas/id_sync")
55

66
# Get files from both directories
77
shared_files = fileset(local.shared_dir, "**")

0 commit comments

Comments
 (0)