Skip to content

Commit d6b0ad3

Browse files
devversionmmalerba
authored andcommitted
build: skip bazel mirror urls when fetching yarn and node (#17606)
Bazel currently always tries to fetch Yarn and Node from the Bazel mirror server. This is not helpful since the mirror server usually does not contain artifacts for the versions we are requesting (this has been the case for a long time). Bazel currently always tries the mirror first, and falls back to the official URLs. We should just always use the official URLs. having the fallback seems to have no benefit since our other non-bazel jobs rely on the official URLS only too.
1 parent 9f9b017 commit d6b0ad3

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

WORKSPACE

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,11 +30,13 @@ node_repositories(
3030
"12.9.1-linux_amd64": ("node-v12.9.1-linux-x64.tar.xz", "node-v12.9.1-linux-x64", "680a1263c9f5f91adadcada549f0a9c29f1b26d09658d2b501c334c3f63719e5"),
3131
"12.9.1-windows_amd64": ("node-v12.9.1-win-x64.zip", "node-v12.9.1-win-x64", "6a4e54bda091bd02dbd8ff1b9f6671e036297da012a53891e3834d4bf4bed297"),
3232
},
33+
node_urls = ["https://nodejs.org/dist/v{version}/{filename}"],
3334
# For deterministic builds, specify explicit NodeJS and Yarn versions.
3435
node_version = "12.9.1",
3536
yarn_repositories = {
3637
"1.19.1": ("yarn-v1.19.1.tar.gz", "yarn-v1.19.1", "34293da6266f2aae9690d59c2d764056053ff7eebc56b80b8df05010c3da9343"),
3738
},
39+
yarn_urls = ["https://github.com/yarnpkg/yarn/releases/download/v{version}/{filename}"],
3840
yarn_version = "1.19.1",
3941
)
4042

0 commit comments

Comments
 (0)