1
0
mirror of https://github.com/facebook/proxygen.git synced 2025-08-08 18:02:05 +03:00

use the correct project-specific context when computing hashes

Summary:
Update `BuildOpts.compute_dirs()` to use the correct project-specific manifest
context when computing project hashes.  Previously it was incorrectly using
the initial project's context when evaluating all dependencies.  This would
result in some projects potentially seeing the wrong values for variables that
may change from project to project (like `test`).

Reviewed By: pkaush

Differential Revision: D16477398

fbshipit-source-id: 6c23f5e5e19b2402000a138b3920b79044446041
This commit is contained in:
Adam Simpkins
2019-07-31 20:53:07 -07:00
committed by Facebook Github Bot
parent f1ed28a52c
commit bc2a5ae634
2 changed files with 9 additions and 8 deletions

View File

@@ -156,7 +156,7 @@ class ShowInstDirCmd(SubCmd):
for m in manifests:
ctx = ctx_gen.get_context(m.name)
fetcher = m.create_fetcher(opts, ctx)
dirs = opts.compute_dirs(m, fetcher, manifests_by_name, ctx)
dirs = opts.compute_dirs(m, fetcher, manifests_by_name, ctx_gen)
inst_dir = dirs["inst_dir"]
print(inst_dir)
@@ -236,7 +236,7 @@ class BuildCmd(SubCmd):
if args.clean:
fetcher.clean()
dirs = opts.compute_dirs(m, fetcher, manifests_by_name, ctx)
dirs = opts.compute_dirs(m, fetcher, manifests_by_name, ctx_gen)
build_dir = dirs["build_dir"]
inst_dir = dirs["inst_dir"]
@@ -331,7 +331,7 @@ class FixupDeps(SubCmd):
ctx = ctx_gen.get_context(m.name)
fetcher = m.create_fetcher(opts, ctx)
dirs = opts.compute_dirs(m, fetcher, manifests_by_name, ctx)
dirs = opts.compute_dirs(m, fetcher, manifests_by_name, ctx_gen)
inst_dir = dirs["inst_dir"]
install_dirs.append(inst_dir)
@@ -388,7 +388,7 @@ class TestCmd(SubCmd):
ctx = ctx_gen.get_context(m.name)
fetcher = m.create_fetcher(opts, ctx)
dirs = opts.compute_dirs(m, fetcher, manifests_by_name, ctx)
dirs = opts.compute_dirs(m, fetcher, manifests_by_name, ctx_gen)
build_dir = dirs["build_dir"]
inst_dir = dirs["inst_dir"]