[infer][java] Force the option --deep when running Infer on Java Buck projects

Summary: The Buck integration assumes that the output jar file of all the dependency targets are available locally in order to retrieve the analysis from these targets. However, this is not guaranteed to be true when there is a cache hit on some targets. Running `buck build` with the option `--deep` forces this property.

Reviewed By: jvillard

Differential Revision: D4474036

fbshipit-source-id: accabfa
master
Jeremy Dubreil 8 years ago committed by Facebook Github Bot
parent 2800c84972
commit eab0c19c65

@ -210,7 +210,10 @@ def parse_buck_command(args):
parsed_args = parser.parse_args(buck_args) parsed_args = parser.parse_args(buck_args)
base_cmd_without_targets = [p for p in buck_args base_cmd_without_targets = [p for p in buck_args
if p not in parsed_args.targets] if p not in parsed_args.targets]
base_cmd = ['buck', build_keyword] + base_cmd_without_targets buck_build_command = ['buck', build_keyword]
if not parsed_args.deep:
buck_build_command.append('--deep')
base_cmd = buck_build_command + base_cmd_without_targets
return base_cmd, parsed_args return base_cmd, parsed_args
else: else:

Loading…
Cancel
Save