Commit 0a395466 authored by Wez Furlong's avatar Wez Furlong Committed by Facebook Github Bot

getdeps: [EASY] pass yarn offline mirror location for fbsource builds

Summary:
Our CI environment cannot directly connect to the internet,
and even if it could, doing so is undesirable to fetch javascript deps.
We maintain an offline mirror of packages used by the build(s) so that
we don't have to go out to the internet.

When running in fbsource, configure the environment to use that offline
mirror.

Reviewed By: chadaustin

Differential Revision: D18061773

fbshipit-source-id: 1a5e112f23c1baaedfb3dff0c4c2a1641f6bb9a1
parent aae4cba2
......@@ -179,6 +179,14 @@ class BuildOptions(object):
else:
env = Env()
if self.fbsource_dir:
env["YARN_YARN_OFFLINE_MIRROR"] = os.path.join(
self.fbsource_dir, "xplat/third-party/yarn/offline-mirror"
)
env["YARN_PATH"] = os.path.join(
self.fbsource_dir, "xplat/third-party/yarn/yarn"
)
lib_path = None
if self.is_darwin():
lib_path = "DYLD_LIBRARY_PATH"
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment