From 735e90614508ff126513281e237fd5b50b51ac5e Mon Sep 17 00:00:00 2001 From: Jeremy Dubreil Date: Tue, 16 May 2017 17:48:00 -0700 Subject: [PATCH] [infer][java] Force the Buck integration for Java to not use the Buck daemon Summary: The Buck cache was not correctly invalidated when switching between the different analysis mode. This was causing the analysis results to be mixed up. This revision should fix this. Reviewed By: sblackshear Differential Revision: D5073606 fbshipit-source-id: eb14418 --- infer/lib/python/inferlib/bucklib.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/infer/lib/python/inferlib/bucklib.py b/infer/lib/python/inferlib/bucklib.py index dcb62eadf..6c5fefa9e 100644 --- a/infer/lib/python/inferlib/bucklib.py +++ b/infer/lib/python/inferlib/bucklib.py @@ -72,6 +72,10 @@ def prepare_build(args): logging.info('Setup Infer analysis mode for Buck: export INFER_ANALYSIS=1') os.environ['INFER_ANALYSIS'] = '1' + # disable the Buck daemon as changes in the Buck config + # may be missed otherwise + os.environ['NO_BUCKD'] = '1' + # Create a script to be called by buck infer_script = None with tempfile.NamedTemporaryFile(delete=False,