Skip to content

Commit bd8402f

Browse files
authored
fix: adding node 24 to overrides.json and using curl instead wget (#2224)
1 parent d5a5681 commit bd8402f

File tree

2 files changed

+11
-4
lines changed

2 files changed

+11
-4
lines changed

app/aws-lsp-codewhisperer-runtimes/scripts/download-node.sh

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ SHASUMS_FILE="SHASUMS256.txt"
1111
ASSETS_DIR="build/node-assets"
1212

1313
# Download SHASUMS256.txt
14-
wget -q "$BASE_URL/$SHASUMS_FILE" -O "$SHASUMS_FILE"
14+
curl -s "$BASE_URL/$SHASUMS_FILE" -o "$SHASUMS_FILE"
1515

1616
# Extract exact Node.js version from any entry in SHASUMS256.txt
1717
NODE_SEMVER=$(grep -o 'node-v[0-9]*\.[0-9]*\.[0-9]*' SHASUMS256.txt | head -1 | cut -d'v' -f2)
@@ -47,7 +47,7 @@ for actual_file in "${EXPECTED_FILES[@]}"; do
4747

4848
echo "Updating $actual_file"
4949
mkdir -p "$(dirname "$filepath")"
50-
wget -q "$BASE_URL/$actual_file" -O $filepath
50+
curl -s "$BASE_URL/$actual_file" -o "$filepath"
5151
else
5252
echo "Warning: $actual_file not found in SHASUMS256.txt"
5353
fi
@@ -58,7 +58,7 @@ LICENSE_URL="https://raw.githubusercontent.com/nodejs/node/v${NODE_SEMVER}/LICEN
5858
LICENSE_FILE="$ASSETS_DIR/LICENSE"
5959

6060
echo "Fetching Node.js license from $LICENSE_URL"
61-
wget -q "$LICENSE_URL" -O "$LICENSE_FILE"
61+
curl -s "$LICENSE_URL" -o "$LICENSE_FILE"
6262

6363
# Verify the license file was downloaded successfully
6464
if [ ! -s "$LICENSE_FILE" ]; then
@@ -94,4 +94,4 @@ jq --indent 4 \
9494
echo "Successfully updated Node.js version and license in $ATTRIBUTION_FILE"
9595

9696
# Cleanup
97-
rm -f "$SHASUMS_FILE"
97+
rm -f "$SHASUMS_FILE"

attribution/overrides.json

Lines changed: 7 additions & 0 deletions
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)