def rule_runner() -> RuleRunner: rule_runner = RuleRunner( rules=[ *config_files.rules(), *classpath.rules(), *coursier_fetch_rules(), *coursier_setup_rules(), *external_tool_rules(), *source_files.rules(), *scalac_rules(), *util_rules(), *jdk_rules(), *target_types.rules(), *protobuf_target_types_rules(), *stripped_source_files.rules(), *scala_protobuf_rules(), *artifact_mapper.rules(), *distdir.rules(), QueryRule(HydratedSources, [HydrateSourcesRequest]), QueryRule(GeneratedSources, [GenerateScalaFromProtobufRequest]), QueryRule(DigestContents, (Digest, )), ], target_types=[ ScalaSourceTarget, ScalaSourcesGeneratorTarget, ProtobufSourcesGeneratorTarget, JvmArtifactTarget, ], ) rule_runner.set_options( [], env_inherit=PYTHON_BOOTSTRAP_ENV, ) return rule_runner
def rule_runner() -> RuleRunner: rule_runner = RuleRunner( rules=[ *scala_lockfile_rules(), *scala_dep_inf_rules.rules(), *jdk_rules.rules(), *coursier_fetch_rules(), *coursier_jvm_tool_rules(), *lockfile.rules(), *coursier_setup_rules(), *external_tool.rules(), *source_files.rules(), *util_rules(), *system_binaries.rules(), *graph.rules(), *build_files.rules(), *target_types.rules(), QueryRule(UserGenerateLockfiles, (RequestedJVMUserResolveNames,)), QueryRule(GenerateLockfileResult, (GenerateJvmLockfile,)), ], target_types=[JvmArtifactTarget, ScalaSourceTarget, ScalaSourcesGeneratorTarget], ) rule_runner.set_options( [ '--scala-version-for-resolve={"foo":"2.13.8"}', '--jvm-resolves={"foo": "foo/foo.lock"}', ], env_inherit={"PATH"}, ) return rule_runner
def rule_runner() -> RuleRunner: rule_runner = RuleRunner( rules=[ *thrift_rules(), *scrooge_rules(), *scrooge_java_rules(), *config_files.rules(), *classpath.rules(), *coursier_fetch_rules(), *coursier_setup_rules(), *external_tool_rules(), *source_files.rules(), *scalac_rules(), *util_rules(), *jdk_rules(), *target_types.rules(), *stripped_source_files.rules(), QueryRule(HydratedSources, [HydrateSourcesRequest]), QueryRule(GeneratedSources, [GenerateJavaFromThriftRequest]), ], target_types=[ ScalaSourceTarget, ScalaSourcesGeneratorTarget, ThriftSourcesGeneratorTarget, ], ) rule_runner.set_options( [], env_inherit=PYTHON_BOOTSTRAP_ENV, ) return rule_runner
def rule_runner() -> RuleRunner: rule_runner = RuleRunner( rules=[ *config_files.rules(), *classpath.rules(), *coursier_fetch_rules(), *coursier_setup_rules(), *external_tool_rules(), *source_files.rules(), *scalac_rules(), *util_rules(), *jdk_rules(), *target_types.rules(), *scalafmt_rules(), *skip_field.rules(), QueryRule(FmtResult, (ScalafmtRequest, )), QueryRule(SourceFiles, (SourceFilesRequest, )), QueryRule(Snapshot, (PathGlobs, )), QueryRule(ScalafmtConfigFiles, (GatherScalafmtConfigFilesRequest, )), ], target_types=[ScalaSourceTarget, ScalaSourcesGeneratorTarget], ) rule_runner.set_options([], env_inherit=PYTHON_BOOTSTRAP_ENV) return rule_runner
def rule_runner() -> RuleRunner: rule_runner = RuleRunner( rules=[ *config_files.rules(), *jvm_tool.rules(), *java_dep_inference_rules(), *java_target_rules(), *java_util_rules(), *javac_rules(), *java_symbol_mapper.rules(), *source_files.rules(), *scala_parser.rules(), *scala_symbol_mapper.rules(), *scala_dep_inference_rules.rules(), *scala_target_types.rules(), *system_binaries.rules(), *util_rules(), QueryRule(Addresses, (DependenciesRequest, )), ], target_types=[ JavaSourcesGeneratorTarget, JavaSourceTarget, ScalaSourcesGeneratorTarget, ScalaSourceTarget, ], ) rule_runner.set_options(args=[], env_inherit=PYTHON_BOOTSTRAP_ENV) return rule_runner
def rule_runner() -> RuleRunner: rule_runner = RuleRunner( rules=[ *scala_parser.rules(), *jvm_tool.rules(), *source_files.rules(), *jdk_rules.rules(), *target_types.rules(), *jvm_util_rules.rules(), QueryRule(SourceFiles, (SourceFilesRequest,)), QueryRule(ScalaSourceDependencyAnalysis, (SourceFiles,)), ], target_types=[ScalaSourceTarget], ) rule_runner.set_options(args=["-ldebug"], env_inherit=PYTHON_BOOTSTRAP_ENV) return rule_runner
def rules(): return [ *scala_protobuf_rules.rules(), *protobuf_target_types.rules(), *protobuf_dependency_inference.rules(), # Re-export rules necessary to avoid rule graph errors. *config_files.rules(), *classpath.rules(), *coursier_fetch_rules(), *coursier_setup_rules(), *external_tool_rules(), *source_files.rules(), *scalac_rules(), *util_rules(), *jdk_rules(), *scala_target_types.rules(), *stripped_source_files.rules(), ]
def rules(): return [ *thrift_rules(), *scrooge_rules(), *scrooge_java_rules(), # Re-export rules necessary to avoid rule graph errors. *config_files.rules(), *classpath.rules(), *coursier_fetch_rules(), *coursier_setup_rules(), *external_tool_rules(), *source_files.rules(), *scalac_rules(), *util_rules(), *jdk_rules(), *scala_target_types.rules(), *stripped_source_files.rules(), ]
def rule_runner() -> RuleRunner: rule_runner = RuleRunner( preserve_tmpdirs=True, rules=[ *scala_parser.rules(), *coursier_fetch_rules(), *coursier_setup_rules(), *external_tool_rules(), *source_files.rules(), *jdk_rules.rules(), *target_types.rules(), *jvm_util_rules.rules(), QueryRule(SourceFiles, (SourceFilesRequest,)), QueryRule(ScalaSourceDependencyAnalysis, (SourceFiles,)), ], target_types=[JvmDependencyLockfile, ScalaSourceTarget], ) rule_runner.set_options(args=["-ldebug"], env_inherit=PYTHON_BOOTSTRAP_ENV) return rule_runner