From 59cfa43f71893090eebc48415a514f736260bf7d Mon Sep 17 00:00:00 2001 From: chris48s Date: Wed, 18 Dec 2024 16:13:33 +0000 Subject: [PATCH] fix the makefile On other projects where we are using `BuildMethod: makefile` we are just making a dependencies layer, so its ok for the Makefile to just install packages. On this project there is no dependency layer so if we switch the `BuildMethod` to `makefile` the makefile is also responsible for copying the application code into the zip artifact. --- postcode_lookup/Makefile | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/postcode_lookup/Makefile b/postcode_lookup/Makefile index 6883f5c..40f97bb 100644 --- a/postcode_lookup/Makefile +++ b/postcode_lookup/Makefile @@ -1,7 +1,9 @@ build-ECPostcodeLookupFunction: + cp --recursive . "$(ARTIFACTS_DIR)/" pip install --break-system-packages setuptools - pip install --upgrade -r requirements.txt --target "$(ARTIFACTS_DIR)/python/" + pip install --upgrade -r requirements.txt --target "$(ARTIFACTS_DIR)/" build-BasicAuthFunction: + cp --recursive . "$(ARTIFACTS_DIR)/" pip install --break-system-packages setuptools - pip install --upgrade -r requirements.txt --target "$(ARTIFACTS_DIR)/python/" + pip install --upgrade -r requirements.txt --target "$(ARTIFACTS_DIR)/"