Skip to content

Commit

Permalink
Fix Node.js download link (opensearch-project#4556) (opensearch-proje…
Browse files Browse the repository at this point in the history
…ct#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 <[email protected]>
(cherry picked from commit d746595)
Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>

# Conflicts:
#	CHANGELOG.md

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
  • Loading branch information
1 parent ac7f43d commit 4935a4d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/dev/build/tasks/nodejs/node_download_info.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand All @@ -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);

Expand Down

0 comments on commit 4935a4d

Please sign in to comment.