Skip to content

Commit 178c48b

Browse files
authored
ci: defend against unset version number in awslc installer (#5195)
1 parent f56c9c0 commit 178c48b

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

codebuild/bin/install_awslc.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,8 @@ cd "$BUILD_DIR"
4343
echo "Checking out tag=$AWSLC_VERSION"
4444
# --branch can also take tags and detaches the HEAD at that commit in the resulting repository
4545
# --depth 1 Create a shallow clone with a history truncated to 1 commit
46-
git clone https://github.com/awslabs/aws-lc.git --branch "$AWSLC_VERSION" --depth 1
46+
# If the curl above is throttled, fall back to a known version.
47+
git clone https://github.com/awslabs/aws-lc.git --branch "${AWSLC_VERSION:-main}" --depth 1
4748

4849
install_awslc() {
4950
echo "Building with shared library=$1"

0 commit comments

Comments
 (0)