From 4935a4d9b9d418d6a0af37912ea327ad480a0c67 Mon Sep 17 00:00:00 2001 From: "opensearch-trigger-bot[bot]" <98922864+opensearch-trigger-bot[bot]@users.noreply.github.com> Date: Wed, 12 Jul 2023 14:58:43 -0700 Subject: [PATCH] Fix Node.js download link (#4556) (#4560) https://mirrors.nodejs.org/ is no longer available which prevents the ability from release builds being made. Restoring back the original link. Follow-up should be considered about a caching mechanism and param to the CLI to utilize another link or path. Signed-off-by: Miki (cherry picked from commit d7465957c89ac26c6c2c0366bba696e905309c3a) Signed-off-by: github-actions[bot] # Conflicts: # CHANGELOG.md Co-authored-by: github-actions[bot] --- src/dev/build/tasks/nodejs/node_download_info.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/dev/build/tasks/nodejs/node_download_info.ts b/src/dev/build/tasks/nodejs/node_download_info.ts index 37eba4c29a58..d0fefe72e7c8 100644 --- a/src/dev/build/tasks/nodejs/node_download_info.ts +++ b/src/dev/build/tasks/nodejs/node_download_info.ts @@ -46,7 +46,7 @@ export async function getNodeDownloadInfo(config: Config, platform: Platform) { ? `node-v${version}-win-x64.zip` : `node-v${version}-${arch}.tar.gz`; - const url = `https://mirrors.nodejs.org/dist/v${version}/${downloadName}`; + const url = `https://nodejs.org/dist/v${version}/${downloadName}`; const downloadPath = config.resolveFromRepo('.node_binaries', version, basename(downloadName)); const extractDir = config.resolveFromRepo('.node_binaries', version, arch); @@ -69,7 +69,7 @@ export async function getNodeVersionDownloadInfo( ? `node-v${version}-win-x64.zip` : `node-v${version}-${architecture}.tar.gz`; - const url = `https://mirrors.nodejs.org/dist/v${version}/${downloadName}`; + const url = `https://nodejs.org/dist/v${version}/${downloadName}`; const downloadPath = resolve(repoRoot, '.node_binaries', version, basename(downloadName)); const extractDir = resolve(repoRoot, '.node_binaries', version, architecture);