def rules(): return [ *assembly.rules(), *build_pkg.rules(), *build_pkg_target.rules(), *check.rules(), *third_party_pkg.rules(), *golang.rules(), *import_analysis.rules(), *go_mod.rules(), *first_party_pkg.rules(), *link.rules(), *pkg_analyzer.rules(), *sdk.rules(), *tests_analysis.rules(), *tailor.rules(), *target_type_rules.rules(), *test.rules(), *run_binary.rules(), *package_binary.rules(), *load_go_binary.rules(), # Gofmt *gofmt_rules(), *gofmt_skip_field.rules(), ]
def rule_runner() -> RuleRunner: rule_runner = RuleRunner( rules=[ *dockerfile.rules(), *dockerfile_parser.rules(), package.find_all_packageable_targets, *package_image.rules(), *package_pex_binary.rules(), *package_go_binary.rules(), *pex.rules(), inject_docker_dependencies, py_target_types_rules.generate_targets_from_pex_binaries, UnionRule(GenerateTargetsRequest, py_target_types_rules.GenerateTargetsFromPexBinaries), QueryRule(InjectedDependencies, (InjectDockerDependencies,)), ], target_types=[ DockerImageTarget, PexBinary, PexBinariesGeneratorTarget, GoBinaryTarget, ], ) rule_runner.set_options( [], env_inherit={"PATH", "PYENV_ROOT", "HOME"}, ) return rule_runner
def rules(): return [ *assembly.rules(), *build_go_pkg.rules(), *external_module.rules(), *golang.rules(), *go_target_types.rules(), *import_analysis.rules(), *go_mod.rules(), *go_pkg.rules(), *sdk.rules(), *tailor.rules(), *target_type_rules.rules(), *custom_goals.rules(), *package_binary.rules(), ]
def rule_runner() -> RuleRunner: return RuleRunner( target_types=[GoBinary, GoPackage, GoModule], rules=[ *external_tool.rules(), *assembly.rules(), *source_files.rules(), *import_analysis.rules(), *package_binary.rules(), *build_go_pkg.rules(), *go_pkg.rules(), *go_mod.rules(), *target_type_rules.rules(), *external_module.rules(), *sdk.rules(), QueryRule(BuiltPackage, (GoBinaryFieldSet, )), ], )
def rule_runner() -> RuleRunner: rule_runner = RuleRunner( rules=[ *assembly.rules(), *import_analysis.rules(), *package_binary.rules(), *build_pkg.rules(), *build_pkg_target.rules(), *first_party_pkg.rules(), *go_mod.rules(), *link.rules(), *target_type_rules.rules(), *third_party_pkg.rules(), *sdk.rules(), QueryRule(BuiltPackage, (GoBinaryFieldSet,)), ], target_types=[GoBinaryTarget, GoModTarget], ) rule_runner.set_options([], env_inherit={"PATH"}) return rule_runner