Skip to content

Commit a3f9db8

Browse files
committed
Make it usable for local testing without Docker on a Mac
1 parent 3f43f4d commit a3f9db8

13 files changed

+77
-405
lines changed

awslambdaric/bootstrap.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@
3737

3838
def _get_handler(handler):
3939
try:
40-
(modname, fname) = handler.rsplit(".", 1)
40+
modname, fname = handler.rsplit(".", 1)
4141
except ValueError as e:
4242
raise FaultException(
4343
FaultException.MALFORMED_HANDLER_NAME,

deps/aws-lambda-cpp-0.2.10.tar.gz

312 KB
Binary file not shown.

deps/aws-lambda-cpp-0.2.6.tar.gz

-282 KB
Binary file not shown.

deps/curl-7.83.1.tar.gz

8.13 MB
Binary file not shown.

deps/patches/aws-lambda-cpp-add-content-type.patch

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ index 08d7014..1cbd6bb 100644
4646
@@ -275,6 +275,7 @@ runtime::next_outcome runtime::get_next()
4747
invocation_request req;
4848
req.payload = resp.get_body();
49-
req.request_id = resp.get_header(REQUEST_ID_HEADER);
49+
req.request_id = std::move(out).get_result();
5050
+ req.content_type = resp.get_content_type();
5151

5252
if (resp.has_header(TRACE_ID_HEADER)) {

deps/patches/aws-lambda-cpp-add-tenant-id.patch

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -26,14 +26,17 @@ index e53b2b8..9763282 100644
2626

2727
enum Endpoints {
2828
INIT,
29-
@@ -289,6 +290,10 @@ runtime::next_outcome runtime::get_next()
29+
@@ -289,6 +290,11 @@ runtime::next_outcome runtime::get_next()
3030
req.function_arn = resp.get_header(FUNCTION_ARN_HEADER);
3131
}
3232

33-
+ if (resp.has_header(TENANT_ID_HEADER)) {
34-
+ req.tenant_id = resp.get_header(TENANT_ID_HEADER);
33+
+ out = resp.get_header(TENANT_ID_HEADER);
34+
+ if (out.is_success()) {
35+
+ req.tenant_id = std::move(out).get_result();
3536
+ }
3637
+
37-
if (resp.has_header(DEADLINE_MS_HEADER)) {
38-
auto const& deadline_string = resp.get_header(DEADLINE_MS_HEADER);
38+
out = resp.get_header(DEADLINE_MS_HEADER);
39+
if (out.is_success()) {
40+
auto const& deadline_string = std::move(out).get_result();
3941
constexpr int base = 10;
42+

deps/patches/aws-lambda-cpp-make-lto-optional.patch

Lines changed: 0 additions & 36 deletions
This file was deleted.

deps/patches/aws-lambda-cpp-make-the-runtime-client-user-agent-overrideable.patch

Lines changed: 0 additions & 90 deletions
This file was deleted.

deps/patches/aws-lambda-cpp-posting-init-errors.patch

Lines changed: 0 additions & 206 deletions
This file was deleted.

deps/versions

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
AWS_LAMBDA_CPP_RELEASE=0.2.6
1+
AWS_LAMBDA_CPP_RELEASE=0.2.10
22
CURL_MAJOR_VERSION=7
33
CURL_MINOR_VERSION=83
44
CURL_PATCH_VERSION=1

0 commit comments

Comments
 (0)