目录
quot; -l -s | python3 filter.py ``` Where filter.py is: ``` import pathlib import sys import os import subprocess for line in sys.stdin: if "buck2/tests/" in line: continue path = pathlib.Path(os.getcwd()).parent / line.strip() if not path.exists(): # Caught previously, skip continue assert path.parts[-1] == "BUCK.v2", path generated = False for line in path.open("r"): if "generated" in line or "partially-generated" in line: generated = True break if generated: continue targets_v1_path = path.parent / "BUCK" if targets_v1_path.exists(): print(f"Removing {targets_v1_path}") subprocess.check_output(["sl", "rm", str(targets_v1_path)]) print(f"Moving {path} to {targets_v1_path}") subprocess.check_output(["sl", "mv", str(path), str(targets_v1_path)]) ``` drop-conflicts Reviewed By: mzlee Differential Revision: D70401061 fbshipit-source-id: 25c56ff820069f8623cf417cdc55569d522e1bfc " href="/mirrors/buck2-prelude/commits/3711b8d924">Eliminate all cases of BUCK.v2 in fbsource1年前
  • androidAdd android_cpu_transitioned_dep rule1天前
  • aospMove aosp_jar to be in rule format8个月前
  • appleRevert D1010932761天前
  • build_modeAllow selects on ovr_config//build_mode:arvr_mode to work in OSS projects using prelude as ovr_config10个月前
  • bxlprelude: fix doc typo in bxl docs (#1052)8个月前
  • cfgRevert D9688077315天前
  • configurationsRevert D95256634: Make incompatible constraint_values a hard error in platform()1个月前
  • cpuAdd further support for riscv in prelude and etc (#1009)9个月前
  • csharpAdd explicit has_content_based_path = False to declare_output calls30天前
  • cxxrewrite -ffile-prefix-map to -fdebug-prefix-map for .cu files under clang20小时前
  • debuggingAdd explicit has_content_based_path = False to declare_output calls30天前
  • declsAdd android_cpu_transitioned_dep rule1天前
  • distExpand DistInfo with fields related to relocatable resources4个月前
  • docsAdd Layout Render Config8个月前
  • erlangRetry logger handler setup on transient file_ctrl timeout8天前
  • error_handlerRemove devmate_resource_import_md GK5天前
  • gitSupport configurable git binary in git_fetch rule17天前
  • goSupport dict format for embed_srcs attribute3天前
  • go_bootstrapAdd typing targets for Python tool scripts2个月前
  • graphqlAdd Android support to shared GraphQL providers and codegen rule19天前
  • haskellAdd explicit has_content_based_path = False to actions.symlinked_dir calls15天前
  • http_archiveAdd explicit has_content_based_path = False to declare_output calls30天前
  • ide_integrationsExplicitly set has_content_based_path = False on all declare_output calls16天前
  • javaMove extra_attributes from java.bzl into rule declarations in java_rules.bzl17天前
  • jsAdd explicit has_content_based_path = False to declare_output calls30天前
  • juliaAdd labels and contacts attrs to prelude rules that were missing them10天前
  • jvmPass nullsafe options as plugin args instead of -A flags25天前
  • kotlinHermetic jdkHome resolution in KSP2 for JVM targets9天前
  • linkingFix stamp_build_info to propagate has_content_based_path to output (T261364752)14天前
  • luaUpdate License Headers for Open Source10个月前
  • matlabUpdate License Headers for Open Source10个月前
  • ocamlAdd explicit has_content_based_path = False to actions.symlinked_dir calls15天前
  • osMake the Rust crate hashing consistent for APEX use case9天前
  • os_lookupAdd further support for riscv in prelude and etc (#1009)9个月前
  • platformsAdd arm64e support to BUCK2 constraint system and toolchain2天前
  • playgroundUpdate License Headers for Open Source10个月前
  • pythonRemove dead interpreter flags and stale code1天前
  • python_bootstrapadd content based path to python_bootstrap_(library/binary)5个月前
  • runtimeSupport prelude//runtime/constraints:android-host-test4个月前
  • rustEnable content-based paths for Rust prelude export_file targets6天前
  • testDry run for inject_test_env.py9天前
  • testsPass meta_internal_extra_params to listing executor11天前
  • third-partyNormalize METADATA.bzl files8天前
  • toolchainsAdd DirectDeclarationsAccessCompat OptIn to KosabiClassUsageCollector2天前
  • toolsUpdate License Headers for Open Source10个月前
  • transitionsForce no-san constraint override for JVM native deps2天前
  • unixUpdate License Headers for Open Source10个月前
  • userAdd labels and contacts attrs to prelude rules that were missing them10天前
  • utilsChange `json.export` to resolve `select` statements2个月前
  • validationAdd explicit has_content_based_path = False to declare_output calls30天前
  • windowsConvert toolchain files to fb_native to opt into content based hashes5个月前
  • xpluginsAdd explicit has_content_based_path = False to actions.copied_dir calls15天前
  • zip_fileAdd typing targets for Python tool scripts2个月前
  • .buckconfigDelete Kosabi standalone flag from rule layer8个月前
  • .gitignoreignore eden redirections created during buck2 build3年前
  • BUCKWrap constraint modifiers with conditional modifier for exec platforms3个月前
  • CHANGELOG.mdFormat the rest of our markdown2年前
  • CODE_OF_CONDUCT.mdInitial commit3年前
  • CONTRIBUTING.mdChange "Facebook" -> "Meta" and related things10天前
  • LICENSE-APACHEInitial commit3年前
  • LICENSE-MITInitial commit3年前
  • README.mdFormat the rest of our markdown2年前
  • alias.bzlUpdate License Headers for Open Source10个月前
  • artifact_tset.bzluse a single ArtifactInfoTag3个月前
  • artifacts.bzlUpdate License Headers for Open Source10个月前
  • asserts.bzlUpdate License Headers for Open Source10个月前
  • attributes.bzlUpdate License Headers for Open Source10个月前
  • attrs_validators.bzlUpdate License Headers for Open Source10个月前
  • cache_mode.bzlUpdate License Headers for Open Source10个月前
  • command_alias.bzlNormalize backslash path separators in Unix command_alias trampoline1天前
  • export_exe.bzlAdd support for resources in export_exe2个月前
  • export_file.bzlRemove uses_experimental_content_based_path_hashing from export_file and filegroup2个月前
  • filegroup.bzlRemove uses_experimental_content_based_path_hashing from export_file and filegroup2个月前
  • genrule.bzlRemove uses_experimental_content_based_path_hashing from genrule2个月前
  • genrule_local_labels.bzlHandle selects in labels used to opt-out genrules from running remotely6个月前
  • genrule_prefer_local_labels.bzlUpdate License Headers for Open Source10个月前
  • genrule_toolchain.bzlUpdate License Headers for Open Source10个月前
  • http_file.bzlAdd has_content_based_path attribute to remote_file, http_file and http_archive5个月前
  • is_buck2.bzlUpdate License Headers for Open Source10个月前
  • is_buck2_internal.bzlUpdate License Headers for Open Source10个月前
  • is_full_meta_repo.bzlUpdate License Headers for Open Source10个月前
  • local_only.bzlUpdate License Headers for Open Source10个月前
  • native.bzlRemove android is_production_build() ternary expressions into select() statements from fbandroid/libraries/cacapture/src/main/java/com/facebook/cacapture/app/core/mainview/react/BUCK24天前
  • none.bzlAdd a never-satisfied ConfigurationInfo to prelude//:none10个月前
  • paths.bzlUpdate paths.starts_with arguments and documentation11个月前
  • prelude.bzlUpdate License Headers for Open Source10个月前
  • pull_request_template.mdFormat the rest of our markdown2年前
  • remote_file.bzlAdd has_content_based_path attribute to remote_file, http_file and http_archive5个月前
  • resources.bzlAdd explicit has_content_based_path = False to actions.symlinked_dir calls15天前
  • rules.bzlMove constraint_overrides transitions to respective rule decls6个月前
  • rules_impl.bzlAdd labels and contacts attrs to prelude rules that were missing them10天前
  • sh_binary.bzlAdd support for content based paths in sh_binary5个月前
  • sh_test.bzlUpdate License Headers for Open Source10个月前
  • test_suite.bzlUpdate License Headers for Open Source10个月前
  • validation_deps.bzlUpdate License Headers for Open Source10个月前
  • Buck2 Prelude

    This repo contains a copy of the Buck2 Prelude, which is often included as a submodule with a Buck2 project. To obtain a copy of this repo, and set up other details of a Buck2, you should usually run buck2 init --git. Most information can be found on the main Buck2 GitHub project.

    Pull requests and issues should be raised at facebook/buck2 as that project is more closely monitored and contains CI checks.

    License

    Buck2 Prelude is both MIT and Apache License, Version 2.0 licensed, as found in the LICENSE-MIT and LICENSE-APACHE files.

    邀请码
      Gitlink(确实开源)
    • 加入我们
    • 官网邮箱:gitlink@ccf.org.cn
    • QQ群
    • QQ群
    • 公众号
    • 公众号

    版权所有:中国计算机学会技术支持:开源发展技术委员会
    京ICP备13000930号-9 京公网安备 11010802032778号