Fix libcurl download url by zsombor-balogh · Pull Request #74 · aws/aws-lambda-python-runtime-interface-client · GitHub
Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .gitignore
2 changes: 1 addition & 1 deletion awslambdaric/bootstrap.py
Original file line number Diff line number Diff line change
Expand Up @@ -324,7 +324,7 @@ class FramedTelemetryLogSink(object):

def __init__(self, fd):
self.fd = int(fd)
self.frame_type = 0xA55A0001 .to_bytes(4, "big")
self.frame_type = 0xA55A0001.to_bytes(4, "big")
Comment thread
zsombor-balogh marked this conversation as resolved.

def __enter__(self):
self.file = os.fdopen(self.fd, "wb", 0)
Expand Down
4 changes: 3 additions & 1 deletion deps/versions
Original file line number Diff line number Diff line change
@@ -1,2 +1,4 @@
AWS_LAMBDA_CPP_RELEASE=0.2.6
CURL_VERSION=7.83.0
CURL_MAJOR_VERSION=7
CURL_MINOR_VERSION=83
CURL_PATCH_VERSION=0
2 changes: 2 additions & 0 deletions scripts/preinstall.sh
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@ else
cd deps
. ./versions

CURL_VERSION="${CURL_MAJOR_VERSION}.${CURL_MINOR_VERSION}.${CURL_PATCH_VERSION}"

rm -rf ./curl-$CURL_VERSION
rm -rf ./aws-lambda-cpp-$AWS_LAMBDA_CPP_RELEASE

Expand Down
2 changes: 1 addition & 1 deletion scripts/update_deps.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ source versions
rm -f aws-lambda-cpp-*.tar.gz && rm -f curl-*.tar.gz

# Grab Curl
wget -c https://github.com/curl/curl/archive/curl-$CURL_VERSION.tar.gz
wget -c "https://github.com/curl/curl/releases/download/curl-${CURL_MAJOR_VERSION}_${CURL_MINOR_VERSION}_${CURL_PATCH_VERSION}/curl-${CURL_MAJOR_VERSION}.${CURL_MINOR_VERSION}.${CURL_PATCH_VERSION}.tar.gz"

# Grab aws-lambda-cpp
wget -c https://github.com/awslabs/aws-lambda-cpp/archive/v$AWS_LAMBDA_CPP_RELEASE.tar.gz -O - | tar -xz
Expand Down
4 changes: 3 additions & 1 deletion tests/test_bootstrap.py