diff --git a/modules/ape/1.0.0-beta.11/MODULE.bazel b/modules/ape/1.0.0-beta.11/MODULE.bazel new file mode 100644 index 00000000000..bba27107e86 --- /dev/null +++ b/modules/ape/1.0.0-beta.11/MODULE.bazel @@ -0,0 +1,354 @@ +module( + name = "ape", + version = "1.0.0-beta.11", + bazel_compatibility = [ + ">=7.0.0", + ], + compatibility_level = 1, +) + +bazel_dep(name = "rules_curl", version = "1.0.0-alpha.8", dev_dependency = True) + +bazel_dep(name = "platforms", version = "0.0.10") +bazel_dep(name = "toolchain_utils", version = "1.0.0-beta.9") +bazel_dep(name = "download_utils", version = "1.0.0-beta.2") + +download_archive = use_repo_rule("@download_utils//download/archive:defs.bzl", "download_archive") + +download_archive( + name = "zig-0.11.0-arm64-darwin", + srcs = [ + "entrypoint", + "zig", + ], + integrity = "sha256-xuv5J7sTpwfXQmdHSp9VMnTmSQb9Ib8cdaIL3oyt97I=", + links = { + "zig-macos-aarch64-0.11.0/zig": "zig", + "zig": "entrypoint", + }, + urls = [ + "https://gitlab.arm.com/api/v4/projects/bazel%2Fape/packages/generic/zig/0.11.0/zig-macos-aarch64-0.11.0.tar.xz", + "https://ziglang.org/download/0.11.0/zig-macos-aarch64-0.11.0.tar.xz", + ], +) + +select = use_repo_rule("@toolchain_utils//toolchain/local/select:defs.bzl", "toolchain_local_select") + +select( + name = "zig", + map = { + "arm64-darwin": "@zig-0.11.0-arm64-darwin", + }, +) + +download_file = use_repo_rule("@download_utils//download/file:defs.bzl", "download_file") + +download_file( + name = "ape-m1.c", + executable = False, + integrity = "sha256-siSN87YY1f4LMWIEe8OCycM+61MmIVRAczNhQ28umGo=", + output = "ape-m1.c", + urls = [ + "https://gitlab.arm.com/api/v4/projects/bazel%2Fape/packages/generic/cosmos.zip/3.3.1/ape-m1.c", + "https://raw.githubusercontent.com/jart/cosmopolitan/3.3.1/ape/ape-m1.c", + ], +) + +compile = use_repo_rule("//ape/compile:repository.bzl", "compile") + +compile( + name = "ape-arm64.macho", + srcs = ["@ape-m1.c"], + output = "ape", + zig = "@zig//:entrypoint", +) + +[ + download_file( + name = binary, + executable = True, + integrity = integrity, + output = "ape", + urls = [ + "https://gitlab.arm.com/api/v4/projects/bazel%2Fape/packages/generic/cosmo.zip/3.3.1/{}".format(binary), + "https://cosmo.zip/pub/cosmos/v/3.3.1/bin/{}".format(binary), + ], + ) + for binary, integrity in { + "ape-arm64.elf": "sha256-h3zL1GUkMGVCbLSjyrQ1GsrZGGSfhlZVa7YEiC7q0I8=", + "ape-x86_64.elf": "sha256-fBz4sk4bbdatfaOBcEXVgq2hRrTW7AxqRb6oMOOmX00=", + "ape-x86_64.macho": "sha256-btvd3YJTsgZojeJJGIrf2OuFDpw9nxmEMleBS5NsWZg=", + }.items() +] + +pe = use_repo_rule("//ape/pe:repository.bzl", "pe") + +pe(name = "ape.pe") + +select( + name = "launcher", + map = { + "arm64-linux": "@ape-arm64.elf", + "amd64-linux": "@ape-x86_64.elf", + "amd64-darwin": "@ape-x86_64.macho", + "arm64-darwin": "@ape-arm64.macho", + "windows": "@ape.pe", + }, +) + +resolved = use_repo_rule("@toolchain_utils//toolchain/resolved:defs.bzl", "toolchain_resolved") + +resolved( + name = "resolved-ape", + toolchain_type = "//ape/toolchain/ape:type", +) + +register_toolchains("//ape/toolchain/...") + +ape_entrypoint = use_repo_rule("//ape/entrypoint:defs.bzl", "ape_entrypoint") + +export = use_extension("@toolchain_utils//toolchain/export:defs.bzl", "toolchain_export") + +[ + ( + download_file( + name = "cosmos-{}".format(binary), + executable = True, + integrity = integrity, + output = binary, + urls = [ + "https://gitlab.arm.com/api/v4/projects/bazel%2Fape/packages/generic/cosmo.zip/3.3.1/{}".format(binary), + "https://cosmo.zip/pub/cosmos/v/3.3.1/bin/{}".format(binary), + ], + ), + ape_entrypoint( + name = binary, + binary = "@cosmos-{}//:{}".format(binary, binary), + ), + export.symlink( + name = "ape-{}".format(binary), + target = "@{}".format(binary), + ), + ) + for binary, integrity in { + "assimilate": "sha256-zBP7dVhBaUKyxbSlqVWKjC293c+t0NSMfSYW0/FnV0s=", + "awk": "sha256-S8i3mKq7mEtBZzo1Uu679YqnAWzkikcVdf4VqEqI070=", + "b2sum": "sha256-hybI849qLSwgx7YJkQn7jWLMnagPL2HjvrKm/piVuhs=", + "base32": "sha256-TZkpwZAqSQTHHcRwl88F8haL6d7vm8nzdB50IBU7Mlw=", + "base64": "sha256-5yuKsVWZrZm/uaI23z8UBm4KmrNy+V2iqP/yNIAfl00=", + "basename": "sha256-xKbtsOkcHIi9mW3aI1JGo9H3pqan8hBqfsPxoh3e32s=", + "basenc": "sha256-RWpNzGmO/BjqSz9l6DEdOhFX5qoo1iHDJR8sNiahPe0=", + "bash": "sha256-a5aWfQrsx8zogqy1WCJ/sYEaNlxBbsY9lZVf4VMYTT0=", + "berry": "sha256-9ZJIEqpYwPi0OqU7N8BSAOci5yKcdv9cBnD5ZGzkj8g=", + "brotli": "sha256-Tm3e9kratlJPUF8d/+fIGyjmeBjX7NAkYDyiL4ks2jM=", + "bzip2": "sha256-lqfcO/t/s5f19EUnnV/oijc+iBnvmyblMAEM7FrcRZU=", + "cat": "sha256-zn8YVGvKwuQoDg9YXAE+9nxYM4E8t004mwIyNrqVpbw=", + "chcon": "sha256-qoL4zarrnBVQ+V6+xYnH4XCv856fUS/RxwQuBUGRFks=", + "chgrp": "sha256-GoWZbn/c4+E+TQhqD6lIOMVWUDJnbp6Wk8SHU7zENoU=", + "chown": "sha256-LkN2ONSleTXKvpz/dYlk4m9UJRuCztov3+DlOEodXDE=", + "chroot": "sha256-jZbYqT/TwIpw6BO9FfJ3GxvklpKE0mBBXiNuGSbtsns=", + "cksum": "sha256-hfAnWqmktIYXHEiTaKWQL/fDXK7bnHQONkRKtaMd5J4=", + "clang-format": "sha256-t1/HDaTZ/klR+VFONNcqj5uxgIm37dafKu5Mp99ecVQ=", + "cmp": "sha256-8KPABEMCQeKSwHulagH5f382QOqkVpFp1Y3mohbcHk8=", + "comm": "sha256-uh4mLvzwY0QmCT32SRL/f0ubzXfszKpvb2ZtboQrNIA=", + "cpuid": "sha256-wAGvPA8axzW+XJ5w861q7IV518W7WMrZ/tbZ0Z78t1E=", + "csplit": "sha256-nLz8hfRVZDGz/UVq1/Ge0j4Q06eSLgLxu4aRexwEelA=", + "ctags": "sha256-x/101oqxSvgRoQ9N9+sZkuC7/tV+zVnId4Jo4gX5PIU=", + "curl": "sha256-54mSqLkXfwMSRZtPa2w2T8XuvE12o9QxJRQYmOGn1YY=", + "cut": "sha256-FDcHrxJ+CjkPOYFD/F7F9EOF93TKbU2/N7CHP8vte4I=", + "dash": "sha256-AMQZpQl5cfVZ/1vZAn/SnuSGC34CkfPMXA9tQixE/zM=", + "datasette": "sha256-hUDSYI+lpEhVX6zhFnNHu/N3bNfDeWSJQjkAzcoYCjA=", + "date": "sha256-uNP3r6CkyURYW7vH5rR/FXMQpoBgiyW2sTn6qUEs0ao=", + "df": "sha256-VtOW2S2dzEAwP/5B9Qj4u/qZndNCo0lJrSqWX7Sd6vo=", + "dir": "sha256-oNxnS6F4pCNMedClbW/NFRRbP1XAwsdZpGJ2VsXug0g=", + "dircolors": "sha256-ASzE+h3h/0XBA4vrOyPSKptSE0tJEpbfFtMN1nDhGa4=", + "dirname": "sha256-EMAAvhNKylQI5YR1O3P1locWiIUpclMesgKAu9UWNec=", + "diff": "sha256-1ZQPcT1/LLFKJRq8K1S7sICi4VumBRAt6FSVKejBDek=", + "diff3": "sha256-ncg5o4aApr13g34awJ1oI4zfr9WqTq4JKCkwBXbWmF4=", + "du": "sha256-XeQC8BcRZjuA+BCb+JRyRe+6wN3m3iVWZ7BIBF7guvA=", + "emacs": "sha256-DLJvKJfmHsrzgD7083fWvp3RFiUMvs3lvWk0xLH92z8=", + "emacsclient": "sha256-6hH6jn2pBX9VsoU4v3u3Xol4MR/6vskzIOwvOhMH5M4=", + "env": "sha256-Lm8iE0YBdvYwn4RMAyqiLWbVxqaEf2iNWilY3PPAGN4=", + "expand": "sha256-/hCOZX9bhwc5SjWQ9GIWwbcPCozCUWUKa/iuDv/ih2c=", + "expr": "sha256-31jw0oaJRgL3qHsBhGDc0TEuSNoAiBH8gyjzRzz87UE=", + "factor": "sha256-me2S4CN3G/KcERW/B86F9MbnvuQg4jaNPWoH4nUH7mk=", + "false": "sha256-KuxblC3tmFtyDjUcdGIag/UVdOGhvxtvrJkRrP6qyl4=", + "find": "sha256-7h4OC/Lz/iD7WkTxmvmSZOflw/E6gTMssKSz68qPCFw=", + "fmt": "sha256-DB2vUqeSnUryfZj+qibUGKMs4Abcz6qzM3w6lawptsM=", + "fold": "sha256-TdlGtv30nM28eoUXx9jjhAf7Zj834R0SHz0yfbcrWio=", + "gmake": "sha256-3J/jjvnCUMTfEyRc5RsxmVJw0jpSwmmzrEFO/u2/pQ8=", + "greenbean": "sha256-jZ4Oj9zhG/UUB2QmhMdDsx4fTdL8/0xvBCHOK/rGSys=", + "grep": "sha256-geISCmpxm4c2gwPnR+XjF47+j/mw2epm5qYEn5Vrvok=", + "groups": "sha256-64yeH5wPP7omE7VfLLH8HGWjyE7zgdzMF8oLpVz+5PY=", + "head": "sha256-Lr5xxWMwjZjQUh2ODx/zDzTO3fx8Yw5694p1t7zG0AU=", + "id": "sha256-8JUzzmsMkhu2sc9w2I/nb8recinaAamgGe7JEQh98kI=", + "install": "sha256-Iu1sv7WjlREuCQp3mgDxFCRf0byn5beC8JmHjWodb/M=", + "join": "sha256-eb7PzIfyziQZ8LeauwpuES+YKemu52jmt0KgJ3pAzks=", + "kill": "sha256-l4b6fMDZR4yHnP1ZpRVL2KfCOgbKDHZkUzo8wlZkMUA=", + "less": "sha256-pysLPyq9zi5gTcj+UTu41PgZsRnUAdYzATIUMiMEsQw=", + "life": "sha256-ui3H0RF4G0JHV9kbDIy5qviR+mKEN//98jHfznq8tO4=", + "link": "sha256-HFtwRXzP/Z+pJTM/Yz7+AMXumO46HmvGGfsHE9vUox8=", + "links": "sha256-EEOqXakHybI51BOxnBCHwLeYlwF8iSSx8p3Gxgcz0Qc=", + "ln": "sha256-FtXuVwYLaC/DT3LPF8coiSMCEOmVVorVzqBYDDRtjyg=", + "locate": "sha256-ZQUPf3kqvmik5citQP+wJiHeOJWrcX4TIDLytEuRyyo=", + "logname": "sha256-IMIHQygOJnWQ2pPMqcFZwKURdNAZM5onxESxBcLM7kM=", + "ls": "sha256-Fno6FUKMAA/8Uk2rsAauhr/b5uqeZcs2oAy+s8uHx3w=", + "lua": "sha256-LRYoHAQg+M8kQKtX6gCjSvD4b9puEbTK2t4z6hyVW8I=", + "lz4": "sha256-ymvYKyvlv31C6tdLYCVFfhaqvmZ5J37RDbxeGx/6rrI=", + "make": "sha256-98atSW2fzibEFrcpFy77A7IvnW0TtMEbeMKxicWb8FM=", + "md5sum": "sha256-1lNBqdyji+ttmR+4sIS6DXcJs6d+67gF0+Q3bUqNaIs=", + "mkfifo": "sha256-Z/dfvumWh0v8wr0l8ByZztaztwMkfekaOXNVnFLVxEk=", + "mknod": "sha256-C7rFuRsgVIA63trDx8rTpFGJztXbNAPMtNuqbzGeqdw=", + "mktemp": "sha256-GihMOG1RDJHUqphmOZPwkfEaVC4jC/X0kCRskpH09u8=", + "mktemper": "sha256-WreRwEGUss++hwxb+3Cttu72Voe4yi4E7Xyr9soCXps=", + "nano": "sha256-trc2X1Jg1JTviP+nbelsQvtMmgrh5gtF7fEijdDvkZY=", + "nesemu1": "sha256-JOqaQ2aNcGoiB3YdX2zLCGGD8kFr4Glv3PLPVej/nwc=", + "nice": "sha256-+fHYlw1WIDX4kCzoTDYy5tqI/BdetF7WlxkJCWpJlrM=", + "ninja": "sha256-MdTFCVaBaiknlbcAXEshhc6P+QDEmNLH6NOt1bGbbu4=", + "nl": "sha256-y5a/fgKdjraA7e+RUKZSh6BIQPviZsxu4720/yPzGUI=", + "nohup": "sha256-sTiFAUHIl+IF6N8wChBjYZj3NJg4vN461JPY9T1peo8=", + "nproc": "sha256-Dydu9oowmpkajx9rq006f5I4Z0BhP6EJv+S0xEjTRcU=", + "numfmt": "sha256-7VTO7GYItNhcoqC7qixlY4dK7l0TgRFRBivCJjbls5Y=", + "od": "sha256-RV+nBJ885wCxqLW8+UOEm3rQopQQhQ/rHuHJYrhZiYA=", + "paste": "sha256-d37G1PptmT8DvFYb0A51tHRAONW3k2xq4y8pFnbR/FA=", + "patch": "sha256-dUVoOS8qaaVAsTlHp5DnupNPB02ZBfVBYUNoFEQVfY4=", + "pathchk": "sha256-qjcLXvmgW3bbARJqpE5PF1LdaVrvnQZVsmBFgTM5/JY=", + # "pigz": "sha256-pvWipO8MGunU157lNj5pkNwMwDYSUFjtx7nWoNxBDw8=", + "pinky": "sha256-cCtYw56s7y1pYOCm/PNgp1Y+pgf8K0UjVVsikUIoJQE=", + "pledge": "sha256-eaFRVXB2hGp2o9lYNSP+bb+sxOQ04bqCU2mDEmSIRN0=", + "pr": "sha256-Cd292alJ/36s1BOyfPj+SDDCuMGsgduzsjHspANOguU=", + "printenv": "sha256-sCxezf/rJ5S2Yw9ELAh8TD0MCUKhTjdwvLfHBVHUiyc=", + "printimage": "sha256-Q6HlaWrVneltekJ6JEceoU+yFzN9o9xpkI4UVwSXFrE=", + "ptx": "sha256-Hv3T2mhutoeK16lpWmZ9f1pbKnJfu1GGc4nCiwBwJ4Q=", + "pwd": "sha256-beUdC7B+HkPJsGjf/isqDL3QQ1gwypLBf32EC2tKa5g=", + "pypack1": "sha256-492wiVHg7chVDxUrir3pOrY1OZ/2h8uKBwfD4gtLJuM=", + "python": "sha256-CuebA8IWxuoYr9HjVgyMLqf0kx23/OGIcS/tAsvPm98=", + "qjs": "sha256-dgblh0J7T6VumjgCrL0PPJAUIzrqGFw9oqoYSO+g39o=", + "readlink": "sha256-n/FcF1jTFHmxvvh0UZeUbJOzse0mCIYEi7nFM0Wb2mg=", + "realpath": "sha256-0SUHEaSMliLf0BRdXaEAUGbwAAKXEV8M7f/xnBmqPPE=", + "redbean": "sha256-b6+KyGmVKmo6iiSUuhRrkIMQ9Mnr8ZqZR64rxtg4BBE=", + "rmdir": "sha256-4yRCV2b4p4im2dCQka0gp7qbdbG0d5OmILbAErTEsF0=", + "rsync": "sha256-IpC+6WKlj7EqkYxNXXDdO7IaF1/jTItBvlSKr0MdNIk=", + "runcon": "sha256-y4OAxP6BQPy2+Rk4qFtStsBtiwOlZLlr30Un6Tt8B1k=", + "script": "sha256-He3EhRTNYIFHfDShoR69EPZW7USl/7gSM1ZB0uk+ie4=", + "sdiff": "sha256-V8rMT2LlnNJ5nQDA+HRVtYBWeoHFCko3lSoyJMo/UTE=", + "sed": "sha256-7z5mtxxjLL9ebC4V1cOpPjzArSxs1cIEsKizH4WPt3E=", + "seq": "sha256-OVOPZyBJJ9rcf1fnIU7ZvJuVTXN89cfXMGYGU1Es5Lo=", + "sha1sum": "sha256-2cL2GKl26qqr+FB3mKjhFPaIzPXCzxBiMfPOBYulFp0=", + "sha224sum": "sha256-Dk9BKP17F/la+gPizCvGjtTqa6/tZT0gTrp1vrKInbo=", + "sha256sum": "sha256-WIplUCNmB7rMDb3/LvrqwoIHaNFw29Etvu6ivX2kCgE=", + "sha384sum": "sha256-nLx1jTqjwSnhWO6eK+heIWHuterKu3B04nYkrp9Shrk=", + "sha512sum": "sha256-y8UewGoBGDMfq2wKHFijVN+NtWKLWZDPOAVQBIA7mSA=", + "shred": "sha256-i8AEctRrGsvRs8Ly7XmK+XpgiZeQVVjIhQ7ie/Yy8yw=", + "shuf": "sha256-WIdP7u66G/XFPDgyCpBihZBgijdeinfBDjARp1K8QXk=", + "sleep": "sha256-gtC/7PR5VvzgxL4FwBJ6VO6b0DN7uBYUc8oQcMeKHWY=", + "sort": "sha256-nz0/ivLwTYtnvl4Xpl456rDfRickgpukdzdPFQy7Bu8=", + "split": "sha256-LKP1sD1cxx+lTlkcxXX2Ew1w3ywOeIoUgnLbZ8ase88=", + "sqlite3": "sha256-MMV+VsI6iwk1U5gATzJEfKqFTRLcNjE6r0TSAmT/3O8=", + "stat": "sha256-VX1GgQICdH2+F5mmYc4WI7G4OT5FFI+Zy3fRw45aypU=", + "stty": "sha256-pBDYJV6K2WuiZTqTkHusvezMBwuf9WeBKOYA/CVyuUI=", + "sum": "sha256-V4E8YCCny/DfQ6vaSupDsQpEF8eF265jIVKiffjExD8=", + "sync": "sha256-92eEiTPpnGEmb1ECuvSXMrAjY+mv/DPP7SMEokOIWNs=", + "tac": "sha256-wCJO+G4bdaTYMzOhZK0CqJbb1fEOmUTAgUrs/yKUi1c=", + "tail": "sha256-25wCKN+CWbZI7/zvmviGlkz4MN6R+mhScVo+BonuDy0=", + "tar": "sha256-veeG74pMzsCwry2oKhbXtrODNLikp7S0Wv98vaAgTlE=", + "tee": "sha256-9nv7tmm8AZfZEIflRNwZz01qDR32aMkbAfhBQTxSgZs=", + "test": "sha256-njjQ967LtdtyVIr2LHLwNZcDjCh1ehqjf4vd4qs1xOY=", + "tidy": "sha256-lDaweZcW7rqo3azvmyGRNoIFwH6QfBX9hTtV5XgZMkc=", + "timeout": "sha256-/05So3XYe6Q1ZaLlg3CkexkMWeePhlCnfiN3FWj40q8=", + "tmux": "sha256-8bdRHrTHAxbBe3jxvDWasMBTt9B/z/I25PZ/7BX8GlI=", + "touch": "sha256-zhFuIvzfkzMi3FTIOumqd4GtGEVJpP/wBeU7/homOPI=", + "tr": "sha256-IiVcClTzSTp1JmNOHSlcIayZvNHbVY42DnAE8/0Qesc=", + "tree": "sha256-cQ8mhq2xdF49vJUc7FloZUswVn72LJDTgxqtRoKCsiw=", + "true": "sha256-hYaiwy4ndHtQVXkue5IZqX6eGTEIG5hF9dFiJNwy0hE=", + "truncate": "sha256-WBM53lBcudr5o7aZXSFtGMAtTDOiTO5mzJXu93LKD30=", + "tsort": "sha256-UpSUFlDED5YslxGn5tffiVOo+wXCkrHIcxn01I4h15s=", + "tty": "sha256-yzZVpirempT1e3VfLqW/wh73Wg/MO9liJDJLRFqzOmE=", + "ttyinfo": "sha256-80TSpREUXO5RJzkGhTYbDL1r31/JdiQ/9bojc0SJL5w=", + "unbourne": "sha256-nXUhnAnJZE2ibUTpzuPRuo3ZStSR5YsizSyzPvleEEg=", + "unexpand": "sha256-SyirSgmXz8cG1TAs5tZHbTIUEup4TobeFXKHUn8g1d0=", + "uniq": "sha256-bRyARZw39jAZXgyGVm63r2V7r+xT3L4d90kAYVlDAZY=", + "unlink": "sha256-W4J4XLYs4yyT+7872Fv8RbOYtAlN62r4fXU83EXYZE0=", + "unzip": "sha256-QDT5UL43QhBK1pdJvCJdpyTMkxWQPD57wAkCziGcYP4=", + "uptime": "sha256-faDcCqiIAUWbsKqZdtVDIRgvV5NCmEGT8qxMzR6lGOg=", + "users": "sha256-isx4kM5na0c1MAcDdCcTnEIVB1HBCFKy757f47UD4tA=", + "vdir": "sha256-fQcjUl1QVmkQ4oyDkiKx/y2V+r5BDMU1oFf3w/l+tmc=", + "verynice": "sha256-S5D4PmAPPZ1WmQZmCAWFuIt3XdUHQoL9++LV7VTYtvI=", + "vim": "sha256-onKJ/dqER14qtN3DMg7U0kU9EE1qvy+d4NyDl27tdUY=", + "wall": "sha256-Fx/k6dM6iCdaKuC56Q2QoxhMcC0LaHacZRfT+EWTHHA=", + "wc": "sha256-XRpXEGIZ/9Ow5IrHP+dbo5dc1hHqKZ1ewqJLM1CX9bg=", + "wget": "sha256-CHZFKvpbmc5AmpkazKk0H0MeYE8wTl7aANjbU9NKDb0=", + "who": "sha256-W+CBIPsR2NBc6xXbom6zyzNCvHKmE+py/iGlX5ewNok=", + "whoami": "sha256-yjAXVvBgVSkLRpNve2AC9srTCSdieNLjh63wFpgxM88=", + "xargs": "sha256-A34zn2hiDh2xMdPY82s1ghm/xzDUEXqxy6IVqOJv9vY=", + "xz": "sha256-84VVLEvkMFVKsNTKX8IZ90XAqebHofJ4bsy3J3f+Xe0=", + "yes": "sha256-J+N2zXEIyM9SF5Xqmpye6hISJi40Xj8343AQUL9jOiI=", + "zip": "sha256-hxobwz7sl7w+NmS45mBoFd0sVSQ3haPeoPW5S7WBUN8=", + "zsh": "sha256-zYH33XZzUvk6v5DiLKe5lKTKx0IsRW7zJWIeQmhM0f4=", + "zstd": "sha256-UQRCbSiHGWmBr2qsbnsCGQjIyhZG2ilfx9Iyxv6KbzQ=", + }.items() +] + +# Some upstream binaries have the `.ape` extension +[ + ( + download_file( + name = "cosmos-{}".format(binary), + executable = True, + integrity = integrity, + output = binary, + urls = [ + "https://gitlab.arm.com/api/v4/projects/bazel%2Fape/packages/generic/cosmo.zip/3.3.1/{}".format(binary), + "https://cosmo.zip/pub/cosmos/v/3.3.1/bin/{}.ape".format(binary), + ], + ), + ape_entrypoint( + name = binary, + binary = "@cosmos-{}//:{}".format(binary, binary), + ), + export.symlink( + name = "ape-{}".format(binary), + target = "@{}".format(binary), + ), + ) + for binary, integrity in { + "chmod": "sha256-wr8yeoXHPf1zaytyG67uZFGXXr2P/EQfBDX2BXSEzg8=", + "cp": "sha256-uGcAdLFNsJ2iRWGfWkNvDDy8tq8ZuILOxPSsYAbRRWQ=", + "dd": "sha256-YcnILuHRDjt0KO1eK92RWERJ/kINYz984lmfSZxubFU=", + "echo": "sha256-Fq/mSx5iToZAUnUol34WY2hpxCJQniM6ZiKtxAzfAMM=", + "gzip": "sha256-fLhh2zULCabpmmthArIDpQvaYKc3LPPSCct4+/6wBSw=", + "mkdir": "sha256-mt2EcyVG4+Pg7C0HXbGd5IIRtoZ+LEqX9c/kq8DcsQw=", + "mv": "sha256-jB7HYOKnprY6cyRiHpToKrGKW4cPID7gVUXWYi1tmlM=", + "printf": "sha256-lES1AJ1YXEsQN8At0yZvM5w0JGsJbfN8jGeb+n3i688=", + "rm": "sha256-pqJTHikQR3b1pSwEcvMaS4SVmHqqUP2k6jCeKSUtDI8=", + "uname": "sha256-C3SggIVtotuyaYo/xQchyv0p8cQnXlyRyVAfnnDA+QU=", + }.items() +] + +# TODO: remove these when we upgrade to 3.3.1+ +# `pigz` is here because `3.3.1` decompression fails +[ + ( + download_file( + name = "cosmos-{}".format(binary), + executable = True, + integrity = integrity, + output = binary, + urls = [ + "https://gitlab.arm.com/api/v4/projects/bazel%2Fape/packages/generic/cosmo.zip/3.2.4/{}".format(binary), + "https://cosmo.zip/pub/cosmos/v/3.2.4/bin/{}".format(binary), + ], + ), + ape_entrypoint( + name = binary, + binary = "@cosmos-{}//:{}".format(binary, binary), + ), + export.symlink( + name = "ape-{}".format(binary), + target = "@{}".format(binary), + ), + ) + for binary, integrity in { + "pigz": "sha256-KReMrcHfifpjgxeb/k4WNl6ZtgJwfDIf9mTbcEldR0w=", + }.items() +] diff --git a/modules/ape/1.0.0-beta.11/presubmit.yml b/modules/ape/1.0.0-beta.11/presubmit.yml new file mode 100644 index 00000000000..66165609c95 --- /dev/null +++ b/modules/ape/1.0.0-beta.11/presubmit.yml @@ -0,0 +1,23 @@ +bcr_test_module: + module_path: e2e + matrix: + bazel: + - 7.x + platform: + - centos7_java11_devtoolset10 + - debian10 + - debian11 + - ubuntu2004 + - ubuntu2004_arm64 + - ubuntu2204 + - fedora39 + - macos + - macos_arm64 + - windows + tasks: + e2e_tests: + name: Run end-to-end Tests + bazel: ${{ bazel }} + platform: ${{ platform }} + test_targets: + - "//..." diff --git a/modules/ape/1.0.0-beta.11/source.json b/modules/ape/1.0.0-beta.11/source.json new file mode 100644 index 00000000000..e7cef61488d --- /dev/null +++ b/modules/ape/1.0.0-beta.11/source.json @@ -0,0 +1,5 @@ +{ + "url": "https://gitlab.arm.com/bazel/ape/-/releases/v1.0.0-beta.11/downloads/src.tar.gz", + "integrity": "sha512-qGyXIPfEYHMAhe75UrvEMaFD9Rhvh2NQTAGKVKDpUwPBvctNhF31eSknLU7YoDTWPyuQILMo6xy5pWWQ4UHqLw==", + "strip_prefix": "ape-v1.0.0-beta.11" +} diff --git a/modules/ape/metadata.json b/modules/ape/metadata.json index c64ba12e301..e205cee08b1 100644 --- a/modules/ape/metadata.json +++ b/modules/ape/metadata.json @@ -12,7 +12,8 @@ "1.0.0-beta.3", "1.0.0-beta.4", "1.0.0-beta.6", - "1.0.0-beta.7" + "1.0.0-beta.7", + "1.0.0-beta.11" ], "maintainers": [ { diff --git a/modules/aspect_bazel_lib/2.7.8/MODULE.bazel b/modules/aspect_bazel_lib/2.7.8/MODULE.bazel new file mode 100644 index 00000000000..e4abc99fb4a --- /dev/null +++ b/modules/aspect_bazel_lib/2.7.8/MODULE.bazel @@ -0,0 +1,77 @@ +"aspect-build/bazel-lib" + +module( + name = "aspect_bazel_lib", + version = "2.7.8", + bazel_compatibility = [">=6.0.0"], + compatibility_level = 1, +) + +# Lower-bounds (minimum) versions for direct runtime dependencies +bazel_dep(name = "bazel_skylib", version = "1.5.0") +bazel_dep(name = "platforms", version = "0.0.8") + +# 0.5.4 is the first version with bzlmod support +bazel_dep(name = "stardoc", version = "0.5.4", repo_name = "io_bazel_stardoc") + +bazel_lib_toolchains = use_extension("@aspect_bazel_lib//lib:extensions.bzl", "toolchains") +bazel_lib_toolchains.copy_directory() +bazel_lib_toolchains.copy_to_directory() +bazel_lib_toolchains.jq() +bazel_lib_toolchains.yq() +bazel_lib_toolchains.coreutils() +bazel_lib_toolchains.tar() +bazel_lib_toolchains.zstd() +bazel_lib_toolchains.expand_template() +bazel_lib_toolchains.bats() +use_repo(bazel_lib_toolchains, "bats_toolchains", "bsd_tar_toolchains", "copy_directory_toolchains", "copy_to_directory_toolchains", "coreutils_toolchains", "expand_template_toolchains", "jq_toolchains", "yq_toolchains", "zstd_toolchains") + +register_toolchains( + "@copy_directory_toolchains//:all", + "@copy_to_directory_toolchains//:all", + "@jq_toolchains//:all", + "@yq_toolchains//:all", + "@coreutils_toolchains//:all", + "@expand_template_toolchains//:all", + "@bats_toolchains//:all", + "@bsd_tar_toolchains//:all", + "@zstd_toolchains//:all", +) + +####### Dev dependencies ######## + +# To allow /tools to be built from source +# NOTE: when publishing to BCR, we patch this to be dev_dependency, as we publish pre-built binaries +# along with our releases. + +bazel_dep( + name = "gazelle", + version = "0.36.0", + dev_dependency = True, +) +bazel_dep( + name = "rules_go", + version = "0.46.0", + repo_name = "io_bazel_rules_go", + dev_dependency = True, +) + +go_deps = use_extension( + "@gazelle//:extensions.bzl", + "go_deps", + dev_dependency = True, +) +go_deps.from_file(go_mod = "//:go.mod") +use_repo( + go_deps, + "com_github_bmatcuk_doublestar_v4", + "org_golang_x_exp", +) + +host = use_extension("@aspect_bazel_lib//lib:extensions.bzl", "host", dev_dependency = True) +host.host() +use_repo(host, "aspect_bazel_lib_host") + +bazel_dep(name = "bazel_skylib_gazelle_plugin", version = "1.5.0", dev_dependency = True) +bazel_dep(name = "buildifier_prebuilt", version = "6.4.0", dev_dependency = True) +bazel_dep(name = "bazel_features", version = "0.2.0", dev_dependency = True) diff --git a/modules/aspect_bazel_lib/2.7.8/patches/go_dev_dep.patch b/modules/aspect_bazel_lib/2.7.8/patches/go_dev_dep.patch new file mode 100644 index 00000000000..ffe1c1d3c88 --- /dev/null +++ b/modules/aspect_bazel_lib/2.7.8/patches/go_dev_dep.patch @@ -0,0 +1,27 @@ +diff --git a/MODULE.bazel b/MODULE.bazel +index e63fa5b..9d78a88 100644 +--- a/MODULE.bazel ++++ b/MODULE.bazel +@@ -50,19 +50,19 @@ use_repo(host, "aspect_bazel_lib_host") + bazel_dep( + name = "gazelle", + version = "0.36.0", +- # In released versions: dev_dependency = True ++ dev_dependency = True, + ) + bazel_dep( + name = "rules_go", + version = "0.46.0", + repo_name = "io_bazel_rules_go", +- # In released versions: dev_dependency = True ++ dev_dependency = True, + ) + + go_deps = use_extension( + "@gazelle//:extensions.bzl", + "go_deps", +- # In released versions: dev_dependency = True ++ dev_dependency = True, + ) + go_deps.from_file(go_mod = "//:go.mod") + use_repo( diff --git a/modules/aspect_bazel_lib/2.7.8/patches/module_dot_bazel_version.patch b/modules/aspect_bazel_lib/2.7.8/patches/module_dot_bazel_version.patch new file mode 100644 index 00000000000..fb69b679d55 --- /dev/null +++ b/modules/aspect_bazel_lib/2.7.8/patches/module_dot_bazel_version.patch @@ -0,0 +1,14 @@ +=================================================================== +--- a/MODULE.bazel ++++ b/MODULE.bazel +@@ -1,9 +1,9 @@ + "aspect-build/bazel-lib" + + module( + name = "aspect_bazel_lib", +- version = "0.0.0", ++ version = "2.7.8", + bazel_compatibility = [">=6.0.0"], + compatibility_level = 1, + ) + diff --git a/modules/aspect_bazel_lib/2.7.8/presubmit.yml b/modules/aspect_bazel_lib/2.7.8/presubmit.yml new file mode 100644 index 00000000000..e63a5721ca6 --- /dev/null +++ b/modules/aspect_bazel_lib/2.7.8/presubmit.yml @@ -0,0 +1,12 @@ +bcr_test_module: + module_path: "e2e/smoke" + matrix: + platform: ["debian10", "macos", "ubuntu2004", "windows"] + bazel: ["7.x", "6.x"] + tasks: + run_tests: + name: "Run test module" + platform: ${{ platform }} + bazel: ${{ bazel }} + test_targets: + - "//..." diff --git a/modules/aspect_bazel_lib/2.7.8/source.json b/modules/aspect_bazel_lib/2.7.8/source.json new file mode 100644 index 00000000000..8781f0a8d05 --- /dev/null +++ b/modules/aspect_bazel_lib/2.7.8/source.json @@ -0,0 +1,10 @@ +{ + "integrity": "sha256-cUz4zpWhmLqwpqOtr/6pnpKdLwG/bUpZoubWr3K0gYw=", + "strip_prefix": "bazel-lib-2.7.8", + "url": "https://github.com/aspect-build/bazel-lib/releases/download/v2.7.8/bazel-lib-v2.7.8.tar.gz", + "patches": { + "go_dev_dep.patch": "sha256-DTc/hk+etl4D50M0BLRik2vHbrgDb6rds+Dj4xphWb4=", + "module_dot_bazel_version.patch": "sha256-cizRqvd+TodqhuwU1ml4P1h1j864kSncxbneUmIETo4=" + }, + "patch_strip": 1 +} diff --git a/modules/aspect_bazel_lib/metadata.json b/modules/aspect_bazel_lib/metadata.json index 62216095c52..381fe5014a6 100644 --- a/modules/aspect_bazel_lib/metadata.json +++ b/modules/aspect_bazel_lib/metadata.json @@ -123,7 +123,8 @@ "2.7.2", "2.7.3", "2.7.6", - "2.7.7" + "2.7.7", + "2.7.8" ], "yanked_versions": { "1.31.0": "1.31.0 has a breaking change to the default yq version", diff --git a/modules/aspect_rules_js/2.0.0-rc5/MODULE.bazel b/modules/aspect_rules_js/2.0.0-rc5/MODULE.bazel new file mode 100644 index 00000000000..cc9ad2349ae --- /dev/null +++ b/modules/aspect_rules_js/2.0.0-rc5/MODULE.bazel @@ -0,0 +1,248 @@ +"aspect-build/rules_js" + +module( + name = "aspect_rules_js", + version = "2.0.0-rc5", + bazel_compatibility = [">=6.0.0"], + compatibility_level = 1, +) + +# Lower-bounds (minimum) versions for direct runtime dependencies. +# Do not bump these unless rules_js requires a newer version to function. +bazel_dep(name = "aspect_bazel_lib", version = "2.7.7") +bazel_dep(name = "bazel_features", version = "1.9.0") +bazel_dep(name = "bazel_skylib", version = "1.5.0") +bazel_dep(name = "platforms", version = "0.0.5") +bazel_dep(name = "rules_nodejs", version = "6.2.0") + +node = use_extension("@rules_nodejs//nodejs:extensions.bzl", "node") +use_repo(node, "nodejs_darwin_amd64") +use_repo(node, "nodejs_darwin_arm64") +use_repo(node, "nodejs_linux_amd64") +use_repo(node, "nodejs_linux_arm64") +use_repo(node, "nodejs_linux_ppc64le") +use_repo(node, "nodejs_linux_s390x") +use_repo(node, "nodejs_windows_amd64") + +pnpm = use_extension("@aspect_rules_js//npm:extensions.bzl", "pnpm") +pnpm.pnpm( + name = "pnpm", + pnpm_version = "8.6.7", + pnpm_version_integrity = "sha512-vRIWpD/L4phf9Bk2o/O2TDR8fFoJnpYrp2TKqTIZF/qZ2/rgL3qKXzHofHgbXsinwMoSEigz28sqk3pQ+yMEQQ==", +) +use_repo(pnpm, "pnpm", "pnpm__links") + +bazel_lib_toolchains = use_extension("@aspect_bazel_lib//lib:extensions.bzl", "toolchains") +bazel_lib_toolchains.tar() +use_repo(bazel_lib_toolchains, "coreutils_toolchains") +use_repo(bazel_lib_toolchains, "yq_darwin_amd64") +use_repo(bazel_lib_toolchains, "yq_darwin_arm64") +use_repo(bazel_lib_toolchains, "yq_linux_amd64") +use_repo(bazel_lib_toolchains, "yq_linux_arm64") +use_repo(bazel_lib_toolchains, "yq_linux_ppc64le") +use_repo(bazel_lib_toolchains, "yq_linux_s390x") +use_repo(bazel_lib_toolchains, "yq_windows_amd64") +use_repo(bazel_lib_toolchains, "bsd_tar_toolchains") + +####### Dev dependencies ######## + +bazel_dep(name = "aspect_rules_lint", version = "0.12.0", dev_dependency = True) +bazel_dep(name = "bazel_skylib_gazelle_plugin", version = "1.5.0", dev_dependency = True) +bazel_dep(name = "buildifier_prebuilt", version = "6.4.0", dev_dependency = True) +bazel_dep(name = "gazelle", version = "0.36.0", dev_dependency = True, repo_name = "bazel_gazelle") +bazel_dep(name = "rules_go", version = "0.46.0", dev_dependency = True) +bazel_dep(name = "stardoc", version = "0.6.2", dev_dependency = True, repo_name = "io_bazel_stardoc") + +host = use_extension( + "@aspect_bazel_lib//lib:extensions.bzl", + "host", + dev_dependency = True, +) +host.host() +use_repo(host, "aspect_bazel_lib_host") + +node_dev = use_extension( + "@rules_nodejs//nodejs:extensions.bzl", + "node", + dev_dependency = True, +) +use_repo(node_dev, "nodejs_toolchains") +use_repo(node_dev, "node20_linux_amd64") +use_repo(node_dev, "node20_darwin_arm64") +use_repo(node_dev, "node20_darwin_amd64") +use_repo(node_dev, "node20_linux_arm64") +use_repo(node_dev, "node20_linux_s390x") +use_repo(node_dev, "node20_linux_ppc64le") +use_repo(node_dev, "node20_windows_amd64") +use_repo(node_dev, "node18_linux_amd64") +use_repo(node_dev, "node18_darwin_arm64") +use_repo(node_dev, "node18_darwin_amd64") +use_repo(node_dev, "node18_linux_arm64") +use_repo(node_dev, "node18_linux_s390x") +use_repo(node_dev, "node18_linux_ppc64le") +use_repo(node_dev, "node18_windows_amd64") +use_repo(node_dev, "node16_linux_amd64") +use_repo(node_dev, "node16_darwin_arm64") +use_repo(node_dev, "node16_darwin_amd64") +use_repo(node_dev, "node16_linux_arm64") +use_repo(node_dev, "node16_linux_s390x") +use_repo(node_dev, "node16_linux_ppc64le") +use_repo(node_dev, "node16_windows_amd64") +node_dev.toolchain(node_version = "16.14.2") +node_dev.toolchain( + name = "node16", + node_version = "16.13.1", +) +node_dev.toolchain( + name = "node18", + node_version = "18.13.0", +) +node_dev.toolchain( + name = "node20", + node_version = "20.11.1", +) + +############################################ +# npm dependencies used by examples + +npm = use_extension( + "@aspect_rules_js//npm:extensions.bzl", + "npm", + dev_dependency = True, +) +npm.npm_translate_lock( + name = "npm", + bins = { + # derived from "bin" attribute in node_modules/typescript/package.json + "typescript": [ + "tsc=./bin/tsc", + "tsserver=./bin/tsserver", + ], + }, + custom_postinstalls = { + "@aspect-test/c": "echo moo > cow.txt", + "@aspect-test/c@2.0.2": "echo mooo >> cow.txt", + }, + data = [ + "//:examples/npm_deps/patches/meaning-of-life@1.0.0-pnpm.patch", + "//:package.json", + "//:pnpm-workspace.yaml", + "//examples/js_binary:package.json", + "//examples/linked_empty_node_modules:package.json", + "//examples/macro:package.json", + "//examples/npm_deps:package.json", + "//examples/npm_package/libs/lib_a:package.json", + "//examples/npm_package/packages/pkg_a:package.json", + "//examples/npm_package/packages/pkg_b:package.json", + "//examples/webpack_cli:package.json", + "//js/private/coverage/bundle:package.json", + "//js/private/image:package.json", + "//js/private/test/image:package.json", + "//js/private/test/js_run_devserver:package.json", + "//js/private/worker/src:package.json", + "//npm/private/test:package.json", + "//npm/private/test:vendored/lodash-4.17.21.tgz", + "//npm/private/test/npm_package:package.json", + "//npm/private/test/vendored/is-odd:package.json", + "//npm/private/test/vendored/semver-max:package.json", + ], + generate_bzl_library_targets = True, + lifecycle_hooks = { + # We fetch @kubernetes/client-node from source and it has a `prepare` lifecycle hook that needs to be run + # which runs the `build` package.json script: https://github.com/kubernetes-client/javascript/blob/fc681991e61c6808dd26012a2331f83671a11218/package.json#L28. + # Here we run run build so we just run `tsc` instead of `npm run build` which ends up just running `tsc`. + "@kubernetes/client-node": ["build"], + # 'install' hook fails as it assumes the following path to `node-pre-gyp`: ./node_modules/.bin/node-pre-gyp + # https://github.com/stultuss/protoc-gen-grpc-ts/blob/53d52a9d0e1fe3cbe930dec5581eca89b3dde807/package.json#L28 + "protoc-gen-grpc@2.0.3": [], + }, + lifecycle_hooks_execution_requirements = { + "*": [ + "no-sandbox", + ], + # If @kubernetes/client-node is not sandboxed, will fail with + # ``` + # src/azure_auth.ts(97,43): error TS2575: No overload expects 2 arguments, but overloads do exist that expect either 1 or 4 arguments. + # src/azure_auth.ts(98,34): error TS2575: No overload expects 2 arguments, but overloads do exist that expect either 1 or 4 arguments. + # src/gcp_auth.ts(93,43): error TS2575: No overload expects 2 arguments, but overloads do exist that expect either 1 or 4 arguments. + # src/gcp_auth.ts(94,34): error TS2575: No overload expects 2 arguments, but overloads do exist that expect either 1 or 4 arguments. + # ``` + # since a `jsonpath-plus@7.2.0` that is newer then the transitive dep `jsonpath-plus@0.19.0` is found outside of the sandbox that + # includes typings that don't match the 0.19.0 "any" usage. + "@kubernetes/client-node": [], + "@figma/nodegit": [ + "no-sandbox", + "requires-network", + ], + "esbuild": [ + "no-sandbox", + "requires-network", + ], + "segfault-handler": [ + "no-sandbox", + "requires-network", + ], + "puppeteer": [ + "no-sandbox", + "requires-network", + ], + }, + npmrc = "//:.npmrc", + package_visibility = { + "unused": ["//visibility:private"], + "@mycorp/pkg-a": ["//examples:__subpackages__"], + }, + pnpm_lock = "//:pnpm-lock.yaml", + public_hoist_packages = { + # Instructs the linker to hoist the ms@2.1.3 npm package to `node_modules/ms` in the `examples/npm_deps` package. + # Similar to adding `public-hoist-pattern[]=ms` in .npmrc but with control over which version to hoist and where + # to hoist it. This hoisted package can be referenced by the label `//examples/npm_deps:node_modules/ms` same as + # other direct dependencies in the `examples/npm_deps/package.json`. + "ms@2.1.3": ["examples/npm_deps"], + }, + replace_packages = { + "chalk@5.0.1": "@chalk_501//:pkg", + }, + update_pnpm_lock = True, + verify_node_modules_ignored = "//:.bazelignore", + verify_patches = "//examples/npm_deps/patches:patches", +) +use_repo( + npm, + "npm", + "npm__chalk__5.0.1__links", + "npm__fsevents__2.3.2__links", + "npm__rollup__2.70.2", + "npm__rollup__2.70.2__links", + "npm__unused__0.2.2__links", + "npm__webpack-bundle-analyzer__4.5.0__bufferutil_4.0.7", +) + +# As an example, manually import a package using explicit coordinates. +# Just a demonstration of the syntax de-sugaring. +npm.npm_import( + name = "acorn__8.4.0", + bins = {"acorn": "./bin/acorn"}, + integrity = "sha512-ULr0LDaEqQrMFGyQ3bhJkLsbtrQ8QibAseGZeaSUiT/6zb9IvIkomWHJIvgvwad+hinRAgsI51JcWk2yvwyL+w==", + package = "acorn", + # Root package where to link the package store + root_package = "", + version = "8.4.0", +) +use_repo( + npm, + "acorn__8.4.0", + "acorn__8.4.0__links", +) + +# Used by formatter +go_sdk = use_extension( + "@rules_go//go:extensions.bzl", + "go_sdk", + dev_dependency = True, +) +go_sdk.download( + name = "go_sdk", + version = "1.20.3", +) +use_repo(go_sdk, "go_sdk") diff --git a/modules/aspect_rules_js/2.0.0-rc5/patches/module_dot_bazel_version.patch b/modules/aspect_rules_js/2.0.0-rc5/patches/module_dot_bazel_version.patch new file mode 100644 index 00000000000..9e022a6433e --- /dev/null +++ b/modules/aspect_rules_js/2.0.0-rc5/patches/module_dot_bazel_version.patch @@ -0,0 +1,14 @@ +=================================================================== +--- a/MODULE.bazel ++++ b/MODULE.bazel +@@ -1,9 +1,9 @@ + "aspect-build/rules_js" + + module( + name = "aspect_rules_js", +- version = "0.0.0", ++ version = "2.0.0-rc5", + bazel_compatibility = [">=6.0.0"], + compatibility_level = 1, + ) + diff --git a/modules/aspect_rules_js/2.0.0-rc5/presubmit.yml b/modules/aspect_rules_js/2.0.0-rc5/presubmit.yml new file mode 100644 index 00000000000..38cdbbbea03 --- /dev/null +++ b/modules/aspect_rules_js/2.0.0-rc5/presubmit.yml @@ -0,0 +1,12 @@ +bcr_test_module: + module_path: 'e2e/bzlmod' + matrix: + bazel: ['7.x', '6.x'] + platform: ['debian10', 'macos', 'ubuntu2004'] + tasks: + run_tests: + name: 'Run test module' + bazel: ${{ bazel }} + platform: ${{ platform }} + test_targets: + - '//...' diff --git a/modules/aspect_rules_js/2.0.0-rc5/source.json b/modules/aspect_rules_js/2.0.0-rc5/source.json new file mode 100644 index 00000000000..8f4417864c3 --- /dev/null +++ b/modules/aspect_rules_js/2.0.0-rc5/source.json @@ -0,0 +1,9 @@ +{ + "integrity": "sha256-O61KtmnU040NE3J1uUakbOb48X/sxsev+6ZJZqkFQkY=", + "strip_prefix": "rules_js-2.0.0-rc5", + "url": "https://github.com/aspect-build/rules_js/releases/download/v2.0.0-rc5/rules_js-v2.0.0-rc5.tar.gz", + "patches": { + "module_dot_bazel_version.patch": "sha256-wEFFVcgPg+aTgUt+fPUMkpCSMNnIQ3A39dRt0vUFq2U=" + }, + "patch_strip": 1 +} diff --git a/modules/aspect_rules_js/metadata.json b/modules/aspect_rules_js/metadata.json index 5966c545913..26f205e87a4 100644 --- a/modules/aspect_rules_js/metadata.json +++ b/modules/aspect_rules_js/metadata.json @@ -114,7 +114,8 @@ "2.0.0-rc1", "2.0.0-rc2", "2.0.0-rc3", - "2.0.0-rc4" + "2.0.0-rc4", + "2.0.0-rc5" ], "yanked_versions": {} } diff --git a/modules/aspect_rules_lint/1.0.0-rc4/MODULE.bazel b/modules/aspect_rules_lint/1.0.0-rc4/MODULE.bazel new file mode 100644 index 00000000000..406eb47ad6e --- /dev/null +++ b/modules/aspect_rules_lint/1.0.0-rc4/MODULE.bazel @@ -0,0 +1,39 @@ +"Bazel dependencies" + +module( + name = "aspect_rules_lint", + version = "1.0.0-rc4", + compatibility_level = 1, +) + +bazel_dep(name = "aspect_bazel_lib", version = "2.5.0") + +# Needed in the root because we use js_lib_helpers in our aspect impl +# Minimum version needs 'chore: bump bazel-lib to 2.0 by @alexeagle in #1311' +# to allow users on bazel-lib 2.0 +bazel_dep(name = "aspect_rules_js", version = "1.40.0") +bazel_dep(name = "bazel_skylib", version = "1.4.2") +bazel_dep(name = "platforms", version = "0.0.7") +bazel_dep(name = "rules_multirun", version = "0.9.0") +bazel_dep(name = "rules_multitool", version = "0.4.0") + +# Needed in the root because we dereference ProtoInfo in our aspect impl +bazel_dep(name = "rules_proto", version = "6.0.0") + +# Needed in the root because we dereference the toolchain in our aspect impl +bazel_dep(name = "rules_buf", version = "0.1.1") +bazel_dep(name = "toolchains_protoc", version = "0.2.1") + +multitool = use_extension("@rules_multitool//multitool:extension.bzl", "multitool") +multitool.hub(lockfile = "//format:multitool.lock.json") +multitool.hub(lockfile = "//lint:multitool.lock.json") +use_repo(multitool, "multitool") + +# Locally, use newer bazel-lib for stardoc +single_version_override( + module_name = "aspect_bazel_lib", + version = "2.7.7", +) + +# 0.5.4 is the first version with bzlmod support +bazel_dep(name = "stardoc", version = "0.5.4", dev_dependency = True, repo_name = "io_bazel_stardoc") diff --git a/modules/aspect_rules_lint/1.0.0-rc4/patches/module_dot_bazel_version.patch b/modules/aspect_rules_lint/1.0.0-rc4/patches/module_dot_bazel_version.patch new file mode 100644 index 00000000000..dbe58d34fc6 --- /dev/null +++ b/modules/aspect_rules_lint/1.0.0-rc4/patches/module_dot_bazel_version.patch @@ -0,0 +1,14 @@ +=================================================================== +--- a/MODULE.bazel ++++ b/MODULE.bazel +@@ -1,9 +1,9 @@ + "Bazel dependencies" + + module( + name = "aspect_rules_lint", +- version = "0.0.0", ++ version = "1.0.0-rc4", + compatibility_level = 1, + ) + + bazel_dep(name = "aspect_bazel_lib", version = "2.5.0") diff --git a/modules/aspect_rules_lint/1.0.0-rc4/presubmit.yml b/modules/aspect_rules_lint/1.0.0-rc4/presubmit.yml new file mode 100644 index 00000000000..c810b54054f --- /dev/null +++ b/modules/aspect_rules_lint/1.0.0-rc4/presubmit.yml @@ -0,0 +1,14 @@ +bcr_test_module: + module_path: "example" + matrix: + bazel: ["7.x", "6.x"] + platform: ["debian10", "macos", "ubuntu2004"] + tasks: + run_tests: + name: "Run test module" + bazel: ${{ bazel }} + platform: ${{ platform }} + environment: + BAZELISK_BASE_URL: "https://github.com/bazelbuild/bazel/releases/download/" + test_targets: + - "//..." diff --git a/modules/aspect_rules_lint/1.0.0-rc4/source.json b/modules/aspect_rules_lint/1.0.0-rc4/source.json new file mode 100644 index 00000000000..9a5c5adbcf9 --- /dev/null +++ b/modules/aspect_rules_lint/1.0.0-rc4/source.json @@ -0,0 +1,9 @@ +{ + "integrity": "sha256-9nof2ggiEFycPRy74PsbG73a+9knIozWQsoMv3YUlu0=", + "strip_prefix": "rules_lint-1.0.0-rc4", + "url": "https://github.com/aspect-build/rules_lint/releases/download/v1.0.0-rc4/rules_lint-v1.0.0-rc4.tar.gz", + "patches": { + "module_dot_bazel_version.patch": "sha256-M594Rr4LNywSZFRNgP7fJOfefnDBVnj9sEjMcvB93kU=" + }, + "patch_strip": 1 +} diff --git a/modules/aspect_rules_lint/metadata.json b/modules/aspect_rules_lint/metadata.json index c2e243493fa..5ecb3eab446 100644 --- a/modules/aspect_rules_lint/metadata.json +++ b/modules/aspect_rules_lint/metadata.json @@ -39,7 +39,8 @@ "1.0.0-rc0", "1.0.0-rc1", "1.0.0-rc2", - "1.0.0-rc3" + "1.0.0-rc3", + "1.0.0-rc4" ], "yanked_versions": {} } diff --git a/modules/depend_on_what_you_use/0.4.0/MODULE.bazel b/modules/depend_on_what_you_use/0.4.0/MODULE.bazel new file mode 100644 index 00000000000..1b163b5d983 --- /dev/null +++ b/modules/depend_on_what_you_use/0.4.0/MODULE.bazel @@ -0,0 +1,46 @@ +module( + name = "depend_on_what_you_use", + version = "0.4.0", + # Keep in sync with setup_step_2.bzl + bazel_compatibility = [">=5.4.0"], +) + +bazel_dep(name = "rules_cc", version = "0.0.8") +bazel_dep(name = "rules_python", version = "0.27.1") + +non_module_dependencies = use_extension("//third_party:extensions.bzl", "non_module_dependencies") +use_repo(non_module_dependencies, "dwyu_pcpp") + +### +### Development Dependencies +### + +# Keep in sync with third_party/dependencies.bzl +bazel_dep(name = "bazel_skylib", version = "1.7.0", dev_dependency = True) + +python = use_extension( + "@rules_python//python/extensions:python.bzl", + "python", + dev_dependency = True, +) +python.toolchain(python_version = "3.8") + +pip = use_extension( + "@rules_python//python/extensions:pip.bzl", + "pip", + dev_dependency = True, +) +pip.parse( + hub_name = "dwyu_mypy_deps", + python_version = "3.8", + requirements_lock = "//third_party:mypy_requirements.txt", +) +use_repo(pip, "dwyu_mypy_deps") + +bazel_dep(name = "mypy_integration", dev_dependency = True) +archive_override( + module_name = "mypy_integration", + integrity = "sha256-V1HVImCed4/4/ZdKDoPncNOYZDrceYdvpGW2tCnGfgY=", + strip_prefix = "bazel-mypy-integration-c289c0cd30e53b5cc467b601295834dbc400f4b2", + urls = ["https://github.com/bazel-contrib/bazel-mypy-integration/archive/c289c0cd30e53b5cc467b601295834dbc400f4b2.tar.gz"], +) diff --git a/modules/depend_on_what_you_use/0.4.0/patches/module_dot_bazel.patch b/modules/depend_on_what_you_use/0.4.0/patches/module_dot_bazel.patch new file mode 100644 index 00000000000..980e3d17578 --- /dev/null +++ b/modules/depend_on_what_you_use/0.4.0/patches/module_dot_bazel.patch @@ -0,0 +1,9 @@ +--- MODULE.bazel ++++ MODULE.bazel +@@ -1,5 +1,6 @@ + module( + name = "depend_on_what_you_use", ++ version = "0.4.0", + # Keep in sync with setup_step_2.bzl + bazel_compatibility = [">=5.4.0"], + ) diff --git a/modules/depend_on_what_you_use/0.4.0/presubmit.yml b/modules/depend_on_what_you_use/0.4.0/presubmit.yml new file mode 100644 index 00000000000..b21bfef26c2 --- /dev/null +++ b/modules/depend_on_what_you_use/0.4.0/presubmit.yml @@ -0,0 +1,13 @@ +bcr_test_module: + module_path: "examples" + matrix: + platform: [ "macos", "ubuntu2004", "windows" ] + # DWYU supports Bazel 5.4.0, but only via WORKSPACE + bazel: [ "6.x", "7.x", "rolling" ] + tasks: + verify_examples: + name: "Verify examples" + platform: ${{ platform }} + bazel: ${{ bazel }} + shell_commands: + - python test.py diff --git a/modules/depend_on_what_you_use/0.4.0/source.json b/modules/depend_on_what_you_use/0.4.0/source.json new file mode 100644 index 00000000000..f7cded4f58b --- /dev/null +++ b/modules/depend_on_what_you_use/0.4.0/source.json @@ -0,0 +1,9 @@ +{ + "url": "https://github.com/martis42/depend_on_what_you_use/releases/download/0.4.0/depend_on_what_you_use-0.4.0.tar.gz", + "integrity": "sha256-5zQJmskiY/YfFV4qOdwpk3voGNFtJYkbFmR2cQ7CWsQ=", + "strip_prefix": "depend_on_what_you_use-0.4.0", + "patch_strip": 0, + "patches": { + "module_dot_bazel.patch": "sha256-ZVqyVNzEdCfe+6D0OxK1d0N7M+qAdxpF/Ft/7SDZCR8=" + } +} diff --git a/modules/depend_on_what_you_use/metadata.json b/modules/depend_on_what_you_use/metadata.json index bd46f7678f1..958cd7811cc 100644 --- a/modules/depend_on_what_you_use/metadata.json +++ b/modules/depend_on_what_you_use/metadata.json @@ -13,7 +13,8 @@ "versions": [ "0.1.0", "0.2.0", - "0.3.0" + "0.3.0", + "0.4.0" ], "yanked_versions": {} } diff --git a/modules/libarchive/3.7.4.bcr.2/MODULE.bazel b/modules/libarchive/3.7.4.bcr.2/MODULE.bazel new file mode 100644 index 00000000000..fafe8e7a9db --- /dev/null +++ b/modules/libarchive/3.7.4.bcr.2/MODULE.bazel @@ -0,0 +1,15 @@ +module( + name = "libarchive", + version = "3.7.4.bcr.2", + compatibility_level = 1, +) + +bazel_dep(name = "bzip2", version = "1.0.8.bcr.1") +bazel_dep(name = "lz4", version = "1.9.4") +bazel_dep(name = "xz", version = "5.4.5.bcr.2") +bazel_dep(name = "zlib", version = "1.3.1.bcr.1") +bazel_dep(name = "zstd", version = "1.5.6") +bazel_dep(name = "platforms", version = "0.0.10") +bazel_dep(name = "rules_cc", version = "0.0.9") +bazel_dep(name = "bazel_skylib", version = "1.6.1") +bazel_dep(name = "mbedtls", version = "3.6.0") diff --git a/modules/libarchive/3.7.4.bcr.2/patches/archive_hmac_private.h.patch b/modules/libarchive/3.7.4.bcr.2/patches/archive_hmac_private.h.patch new file mode 100644 index 00000000000..0678d096708 --- /dev/null +++ b/modules/libarchive/3.7.4.bcr.2/patches/archive_hmac_private.h.patch @@ -0,0 +1,24 @@ +diff --git a/libarchive/archive_hmac_private.h b/libarchive/archive_hmac_private.h +index d0fda7f9..e41c944d 100644 +--- a/libarchive/archive_hmac_private.h ++++ b/libarchive/archive_hmac_private.h +@@ -40,12 +40,13 @@ + */ + int __libarchive_hmac_build_hack(void); + +-#ifdef __APPLE__ +-# include +-# if MAC_OS_X_VERSION_MAX_ALLOWED >= 1060 +-# define ARCHIVE_HMAC_USE_Apple_CommonCrypto +-# endif +-#endif ++// Don't compile against CommonCrypto. ++// #ifdef __APPLE__ ++// # include ++// # if MAC_OS_X_VERSION_MAX_ALLOWED >= 1060 ++// # define ARCHIVE_HMAC_USE_Apple_CommonCrypto ++// # endif ++// #endif + + #ifdef ARCHIVE_HMAC_USE_Apple_CommonCrypto + #include diff --git a/modules/libarchive/3.7.4.bcr.2/patches/build_with_bazel.patch b/modules/libarchive/3.7.4.bcr.2/patches/build_with_bazel.patch new file mode 100644 index 00000000000..58fd01d9d23 --- /dev/null +++ b/modules/libarchive/3.7.4.bcr.2/patches/build_with_bazel.patch @@ -0,0 +1,1809 @@ +diff --git a/.bazelrc b/.bazelrc +new file mode 100644 +index 00000000..211a1b50 +--- /dev/null ++++ b/.bazelrc +@@ -0,0 +1,6 @@ ++common --enable_bzlmod ++build --enable_runfiles ++ ++build:bcr_presubmit --build_tag_filters=-bcr_presubmit_skip ++test:bcr_presubmit --test_tag_filters=-bcr_presubmit_skip ++ +diff --git a/BUILD.bazel b/BUILD.bazel +new file mode 100644 +index 00000000..8a5b68ff +--- /dev/null ++++ b/BUILD.bazel +@@ -0,0 +1,31 @@ ++load("@bazel_skylib//rules:common_settings.bzl", "bool_flag") ++load("@rules_cc//cc:defs.bzl", "cc_library") ++ ++bool_flag( ++ name = "use_mbedtls", ++ build_setting_default = False, ++) ++ ++config_setting( ++ name = "use_mbedtls_setting", ++ flag_values = {":use_mbedtls": "true"}, ++ visibility = ["//:__subpackages__"], ++) ++ ++cc_library( ++ name = "config", ++ visibility = ["//:__subpackages__"], ++ defines = select({ ++ "//:use_mbedtls_setting": [ ++ "HAVE_LIBMBEDCRYPTO", ++ "HAVE_MBEDTLS_AES_H", ++ "HAVE_MBEDTLS_MD_H", ++ "HAVE_MBEDTLS_PKCS5_H", ++ ], ++ "//conditions:default": [], ++ }), ++ hdrs = select({ ++ "@platforms//os:windows": ["libarchive_bazel_windows_config.h"], ++ "//conditions:default": ["libarchive_bazel_generic_config.h"], ++ }), ++) +diff --git a/MODULE.bazel b/MODULE.bazel +new file mode 100644 +index 00000000..fafe8e7a +--- /dev/null ++++ b/MODULE.bazel +@@ -0,0 +1,15 @@ ++module( ++ name = "libarchive", ++ version = "3.7.4.bcr.2", ++ compatibility_level = 1, ++) ++ ++bazel_dep(name = "bzip2", version = "1.0.8.bcr.1") ++bazel_dep(name = "lz4", version = "1.9.4") ++bazel_dep(name = "xz", version = "5.4.5.bcr.2") ++bazel_dep(name = "zlib", version = "1.3.1.bcr.1") ++bazel_dep(name = "zstd", version = "1.5.6") ++bazel_dep(name = "platforms", version = "0.0.10") ++bazel_dep(name = "rules_cc", version = "0.0.9") ++bazel_dep(name = "bazel_skylib", version = "1.6.1") ++bazel_dep(name = "mbedtls", version = "3.6.0") +diff --git a/WORKSPACE.bzlmod b/WORKSPACE.bzlmod +new file mode 100644 +index 00000000..8b137891 +--- /dev/null ++++ b/WORKSPACE.bzlmod +@@ -0,0 +1 @@ ++ +diff --git a/bazel/BUILD.bazel b/bazel/BUILD.bazel +new file mode 100644 +index 00000000..e1e1a513 +--- /dev/null ++++ b/bazel/BUILD.bazel +@@ -0,0 +1 @@ ++# empty for patch sake +diff --git a/bazel/config.bzl b/bazel/config.bzl +new file mode 100644 +index 00000000..1519aedb +--- /dev/null ++++ b/bazel/config.bzl +@@ -0,0 +1,8 @@ ++PLATFORM_LOCAL_DEFINES = select({ ++ "@platforms//os:windows": [ ++ "PLATFORM_CONFIG_H=\\\"libarchive_bazel_windows_config.h\\\"", ++ ], ++ "//conditions:default": [ ++ "PLATFORM_CONFIG_H=\\\"libarchive_bazel_generic_config.h\\\"", ++ ], ++}) +diff --git a/bazel/libarchive_test.bzl b/bazel/libarchive_test.bzl +new file mode 100644 +index 00000000..b7744dee +--- /dev/null ++++ b/bazel/libarchive_test.bzl +@@ -0,0 +1,31 @@ ++load("@bazel_skylib//rules:write_file.bzl", "write_file") ++load("@rules_cc//cc:defs.bzl", "cc_library", "cc_test") ++ ++def libarchive_test(name = None, tests = None, data = None, deps = [], **kwargs): ++ if not tests: ++ tests = [name] ++ if not data: ++ data = native.glob(["*.uu"]) ++ write_file( ++ name = "{}_list_h".format(name), ++ out = "_{}_list_h/list.h".format(name), ++ content = ["DEFINE_TEST({})".format(test) for test in tests], ++ ) ++ cc_library( ++ name = "{}_list".format(name), ++ hdrs = ["_{}_list_h/list.h".format(name)], ++ strip_include_prefix = "_{}_list_h".format(name), ++ ) ++ cc_test( ++ name = name, ++ includes = ["."], ++ srcs = ["//test_utils:test_main.c"] + ["{}.c".format(name)], ++ data = data, ++ deps = deps + [ ++ ":{}_list".format(name), ++ "//test_utils:common", ++ "//libarchive", ++ "//libarchive:internal_hdrs", ++ ], ++ **kwargs ++ ) +diff --git a/cat/BUILD.bazel b/cat/BUILD.bazel +new file mode 100644 +index 00000000..3d9312d3 +--- /dev/null ++++ b/cat/BUILD.bazel +@@ -0,0 +1,22 @@ ++load("@rules_cc//cc:defs.bzl", "cc_binary") ++ ++package(default_visibility = ["//visibility:public"]) ++ ++cc_binary( ++ name = "bsdcat", ++ srcs = [ ++ "bsdcat.c", ++ "bsdcat.h", ++ "bsdcat_platform.h", ++ "cmdline.c", ++ ], ++ deps = [ ++ "//libarchive", ++ "//libarchive_fe", ++ ], ++) ++ ++alias( ++ name = "cat", ++ actual = ":bsdcat", ++) +diff --git a/cpio/BUILD.bazel b/cpio/BUILD.bazel +new file mode 100644 +index 00000000..7af0afe0 +--- /dev/null ++++ b/cpio/BUILD.bazel +@@ -0,0 +1,28 @@ ++load("@rules_cc//cc:defs.bzl", "cc_binary") ++ ++package(default_visibility = ["//visibility:public"]) ++ ++cc_binary( ++ name = "bsdcpio", ++ srcs = [ ++ "cmdline.c", ++ "cpio.c", ++ "cpio.h", ++ "cpio_platform.h", ++ ] + select({ ++ "@platforms//os:windows": [ ++ "cpio_windows.c", ++ "cpio_windows.h", ++ ], ++ "//conditions:default": [], ++ }), ++ deps = [ ++ "//libarchive", ++ "//libarchive_fe", ++ ], ++) ++ ++alias( ++ name = "cpio", ++ actual = ":bsdcpio", ++) +diff --git a/libarchive/BUILD.bazel b/libarchive/BUILD.bazel +new file mode 100644 +index 00000000..e3d14a98 +--- /dev/null ++++ b/libarchive/BUILD.bazel +@@ -0,0 +1,220 @@ ++load("@rules_cc//cc:defs.bzl", "cc_library") ++load("//bazel:config.bzl", "PLATFORM_LOCAL_DEFINES") ++ ++package(default_visibility = ["//visibility:public"]) ++ ++cc_library( ++ name = "internal_hdrs", ++ visibility = ["//:__subpackages__"], ++ hdrs = glob(["*.h"]), ++ strip_include_prefix = ".", ++) ++ ++cc_library( ++ name = "archive", ++ strip_include_prefix = ".", ++ hdrs = [ ++ "archive.h", ++ "archive_entry.h", ++ ], ++ defines = ["LIBARCHIVE_STATIC"], ++ local_defines = PLATFORM_LOCAL_DEFINES, ++ srcs = [ ++ "archive_acl.c", ++ "archive_acl_private.h", ++ "archive_check_magic.c", ++ "archive_cmdline.c", ++ "archive_cmdline_private.h", ++ "archive_crc32.h", ++ "archive_cryptor.c", ++ "archive_cryptor_private.h", ++ "archive_digest.c", ++ "archive_digest_private.h", ++ "archive_endian.h", ++ "archive_entry.c", ++ "archive_entry.h", ++ "archive_entry_copy_stat.c", ++ "archive_entry_link_resolver.c", ++ "archive_entry_locale.h", ++ "archive_entry_private.h", ++ "archive_entry_sparse.c", ++ "archive_entry_stat.c", ++ "archive_entry_strmode.c", ++ "archive_entry_xattr.c", ++ "archive_getdate.c", ++ "archive_getdate.h", ++ "archive_hmac.c", ++ "archive_hmac_private.h", ++ "archive_match.c", ++ "archive_openssl_evp_private.h", ++ "archive_openssl_hmac_private.h", ++ "archive_options.c", ++ "archive_options_private.h", ++ "archive_pack_dev.h", ++ "archive_pack_dev.c", ++ "archive_pathmatch.c", ++ "archive_pathmatch.h", ++ "archive_platform.h", ++ "archive_platform_acl.h", ++ "archive_platform_xattr.h", ++ "archive_ppmd_private.h", ++ "archive_ppmd8.c", ++ "archive_ppmd8_private.h", ++ "archive_ppmd7.c", ++ "archive_ppmd7_private.h", ++ "archive_private.h", ++ "archive_random.c", ++ "archive_random_private.h", ++ "archive_rb.c", ++ "archive_rb.h", ++ "archive_read.c", ++ "archive_read_add_passphrase.c", ++ "archive_read_append_filter.c", ++ "archive_read_data_into_fd.c", ++ "archive_read_disk_entry_from_file.c", ++ "archive_read_disk_posix.c", ++ "archive_read_disk_private.h", ++ "archive_read_disk_set_standard_lookup.c", ++ "archive_read_extract.c", ++ "archive_read_extract2.c", ++ "archive_read_open_fd.c", ++ "archive_read_open_file.c", ++ "archive_read_open_filename.c", ++ "archive_read_open_memory.c", ++ "archive_read_private.h", ++ "archive_read_set_format.c", ++ "archive_read_set_options.c", ++ "archive_read_support_filter_all.c", ++ "archive_read_support_filter_by_code.c", ++ "archive_read_support_filter_bzip2.c", ++ "archive_read_support_filter_compress.c", ++ "archive_read_support_filter_gzip.c", ++ "archive_read_support_filter_grzip.c", ++ "archive_read_support_filter_lrzip.c", ++ "archive_read_support_filter_lz4.c", ++ "archive_read_support_filter_lzop.c", ++ "archive_read_support_filter_none.c", ++ "archive_read_support_filter_program.c", ++ "archive_read_support_filter_rpm.c", ++ "archive_read_support_filter_uu.c", ++ "archive_read_support_filter_xz.c", ++ "archive_read_support_filter_zstd.c", ++ "archive_read_support_format_7zip.c", ++ "archive_read_support_format_all.c", ++ "archive_read_support_format_ar.c", ++ "archive_read_support_format_by_code.c", ++ "archive_read_support_format_cab.c", ++ "archive_read_support_format_cpio.c", ++ "archive_read_support_format_empty.c", ++ "archive_read_support_format_iso9660.c", ++ "archive_read_support_format_lha.c", ++ "archive_read_support_format_mtree.c", ++ "archive_read_support_format_rar.c", ++ "archive_read_support_format_rar5.c", ++ "archive_read_support_format_raw.c", ++ "archive_read_support_format_tar.c", ++ "archive_read_support_format_warc.c", ++ "archive_read_support_format_xar.c", ++ "archive_read_support_format_zip.c", ++ "archive_string.c", ++ "archive_string.h", ++ "archive_string_composition.h", ++ "archive_string_sprintf.c", ++ "archive_util.c", ++ "archive_version_details.c", ++ "archive_virtual.c", ++ "archive_write.c", ++ "archive_write_disk_posix.c", ++ "archive_write_disk_private.h", ++ "archive_write_disk_set_standard_lookup.c", ++ "archive_write_private.h", ++ "archive_write_open_fd.c", ++ "archive_write_open_file.c", ++ "archive_write_open_filename.c", ++ "archive_write_open_memory.c", ++ "archive_write_add_filter.c", ++ "archive_write_add_filter_b64encode.c", ++ "archive_write_add_filter_by_name.c", ++ "archive_write_add_filter_bzip2.c", ++ "archive_write_add_filter_compress.c", ++ "archive_write_add_filter_grzip.c", ++ "archive_write_add_filter_gzip.c", ++ "archive_write_add_filter_lrzip.c", ++ "archive_write_add_filter_lz4.c", ++ "archive_write_add_filter_lzop.c", ++ "archive_write_add_filter_none.c", ++ "archive_write_add_filter_program.c", ++ "archive_write_add_filter_uuencode.c", ++ "archive_write_add_filter_xz.c", ++ "archive_write_add_filter_zstd.c", ++ "archive_write_set_format.c", ++ "archive_write_set_format_7zip.c", ++ "archive_write_set_format_ar.c", ++ "archive_write_set_format_by_name.c", ++ "archive_write_set_format_cpio.c", ++ "archive_write_set_format_cpio_binary.c", ++ "archive_write_set_format_cpio_newc.c", ++ "archive_write_set_format_cpio_odc.c", ++ "archive_write_set_format_filter_by_ext.c", ++ "archive_write_set_format_gnutar.c", ++ "archive_write_set_format_iso9660.c", ++ "archive_write_set_format_mtree.c", ++ "archive_write_set_format_pax.c", ++ "archive_write_set_format_private.h", ++ "archive_write_set_format_raw.c", ++ "archive_write_set_format_shar.c", ++ "archive_write_set_format_ustar.c", ++ "archive_write_set_format_v7tar.c", ++ "archive_write_set_format_warc.c", ++ "archive_write_set_format_xar.c", ++ "archive_write_set_format_zip.c", ++ "archive_write_set_options.c", ++ "archive_write_set_passphrase.c", ++ "archive_xxhash.h", ++ "filter_fork_posix.c", ++ "filter_fork.h", ++ "xxhash.c", ++ ++ # blake2 srcs ++ "archive_blake2.h", ++ "archive_blake2_impl.h", ++ "archive_blake2sp_ref.c", ++ "archive_blake2s_ref.c", ++ ] + select({ ++ "@platforms//os:windows": [ ++ "archive_entry_copy_bhfi.c", ++ "archive_read_disk_windows.c", ++ "archive_windows.c", ++ "archive_windows.h", ++ "archive_write_disk_windows.c", ++ "filter_fork_windows.c", ++ ], ++ "@platforms//os:macos": ["archive_disk_acl_darwin.c"], ++ "@platforms//os:linux": ["archive_disk_acl_linux.c"], ++ "//conditions:default": [], ++ }), ++ linkopts = select({ ++ "@rules_cc//cc/compiler:msvc-cl": [ ++ "/DEFAULTLIB:bcrypt", ++ ], ++ "//conditions:default": [], ++ }), ++ deps = [ ++ ":internal_hdrs", ++ "//:config", ++ "@bzip2//:bz2", ++ "@lz4", ++ "@lz4//:lz4_hc", ++ "@xz//:lzma", ++ "@zlib", ++ "@zstd", ++ ] + select({ ++ "//:use_mbedtls_setting": ["@mbedtls"], ++ "//conditions:default": [], ++ }), ++) ++ ++alias( ++ name = "libarchive", ++ actual = ":archive", ++) +diff --git a/libarchive/test/BUILD.bazel b/libarchive/test/BUILD.bazel +new file mode 100644 +index 00000000..6e255b71 +--- /dev/null ++++ b/libarchive/test/BUILD.bazel +@@ -0,0 +1,918 @@ ++load("@bazel_skylib//rules:write_file.bzl", "write_file") ++load("@rules_cc//cc:defs.bzl", "cc_test") ++load("//bazel:libarchive_test.bzl", "libarchive_test") ++ ++libarchive_test(name = "test_acl_nfs4", deps = [":lib"]) ++libarchive_test(name = "test_acl_pax", deps = [":lib"], tests = ["test_acl_pax_posix1e", "test_acl_pax_nfs4"]) ++libarchive_test(name = "test_acl_platform_nfs4", deps = [":lib"]) ++libarchive_test( ++ name = "test_acl_platform_posix1e", ++ deps = [":lib"], ++ tests = [ ++ "test_acl_platform_posix1e_restore", ++ "test_acl_platform_posix1e_read", ++ ], ++) ++libarchive_test(name = "test_acl_posix1e", deps = [":lib"]) ++libarchive_test( ++ name = "test_acl_text", ++ deps = [":lib"], ++ tests = [ ++ "test_acl_to_text", ++ "test_acl_from_text", ++ ], ++) ++libarchive_test(name = "test_archive_api_feature", deps = [":lib"]) ++libarchive_test(name = "test_archive_clear_error", deps = [":lib"]) ++libarchive_test(name = "test_archive_cmdline", deps = [":lib"]) ++ ++libarchive_test( ++ name = "test_archive_digest", ++ deps = [":lib"], ++ tests = [ ++ "test_archive_md5", ++ "test_archive_rmd160", ++ "test_archive_sha1", ++ "test_archive_sha256", ++ "test_archive_sha384", ++ "test_archive_sha512", ++ ], ++) ++libarchive_test(name = "test_archive_getdate", deps = [":lib"]) ++libarchive_test(name = "test_archive_match_owner", deps = [":lib"]) ++libarchive_test(name = "test_archive_match_path", deps = [":lib"]) ++libarchive_test(name = "test_archive_match_time", deps = [":lib"]) ++libarchive_test(name = "test_archive_pathmatch", deps = [":lib"]) ++libarchive_test( ++ name = "test_archive_read_add_passphrase", ++ deps = [":lib"], ++ tests = [ ++ "test_archive_read_add_passphrase", ++ "test_archive_read_add_passphrase_incorrect_sequance", ++ "test_archive_read_add_passphrase_single", ++ "test_archive_read_add_passphrase_multiple", ++ "test_archive_read_add_passphrase_set_callback1", ++ "test_archive_read_add_passphrase_set_callback2", ++ "test_archive_read_add_passphrase_set_callback3", ++ "test_archive_read_add_passphrase_multiple_with_callback", ++ "test_archive_read_add_passphrase_multiple_with_callback2", ++ ], ++) ++libarchive_test(name = "test_archive_read_close_twice", deps = [":lib"]) ++libarchive_test(name = "test_archive_read_close_twice_open_fd", deps = [":lib"]) ++libarchive_test(name = "test_archive_read_close_twice_open_filename", deps = [":lib"]) ++libarchive_test(name = "test_archive_read_multiple_data_objects", deps = [":lib"]) ++libarchive_test(name = "test_archive_read_next_header_empty", deps = [":lib"]) ++libarchive_test(name = "test_archive_read_next_header_raw", deps = [":lib"]) ++libarchive_test(name = "test_archive_read_open2", deps = [":lib"]) ++libarchive_test(name = "test_archive_read_set_filter_option", deps = [":lib"]) ++libarchive_test(name = "test_archive_read_set_format_option", deps = [":lib"]) ++libarchive_test(name = "test_archive_read_set_option", deps = [":lib"]) ++libarchive_test(name = "test_archive_read_set_options", deps = [":lib"]) ++libarchive_test(name = "test_archive_read_support", deps = [":lib"]) ++libarchive_test(name = "test_archive_set_error", deps = [":lib"]) ++libarchive_test( ++ name = "test_archive_string", ++ deps = [":lib"], ++ tests = [ ++ "test_archive_string", ++ "test_archive_string_sort", ++ ], ++) ++libarchive_test(name = "test_archive_string_conversion", deps = [":lib"]) ++libarchive_test( ++ name = "test_archive_write_add_filter_by_name", ++ deps = [":lib"], ++ tests = [ ++ "test_archive_write_add_filter_by_name_b64encode", ++ "test_archive_write_add_filter_by_name_bzip2", ++ "test_archive_write_add_filter_by_name_compress", ++ "test_archive_write_add_filter_by_name_grzip", ++ "test_archive_write_add_filter_by_name_gzip", ++ "test_archive_write_add_filter_by_name_lrzip", ++ "test_archive_write_add_filter_by_name_lz4", ++ "test_archive_write_add_filter_by_name_lzip", ++ "test_archive_write_add_filter_by_name_lzma", ++ "test_archive_write_add_filter_by_name_lzop", ++ "test_archive_write_add_filter_by_name_uuencode", ++ "test_archive_write_add_filter_by_name_xz", ++ "test_archive_write_add_filter_by_name_zstd", ++ ], ++) ++libarchive_test(name = "test_archive_write_set_filter_option", deps = [":lib"]) ++libarchive_test( ++ name = "test_archive_write_set_format_by_name", ++ deps = [":lib"], ++ tests = [ ++ "test_archive_write_set_format_by_name_7zip", ++ "test_archive_write_set_format_by_name_ar", ++ "test_archive_write_set_format_by_name_arbsd", ++ "test_archive_write_set_format_by_name_arsvr4", ++ "test_archive_write_set_format_by_name_bsdtar", ++ "test_archive_write_set_format_by_name_cd9660", ++ "test_archive_write_set_format_by_name_cpio", ++ "test_archive_write_set_format_by_name_gnutar", ++ "test_archive_write_set_format_by_name_iso", ++ "test_archive_write_set_format_by_name_iso9660", ++ "test_archive_write_set_format_by_name_mtree", ++ "test_archive_write_set_format_by_name_mtree_classic", ++ "test_archive_write_set_format_by_name_newc", ++ "test_archive_write_set_format_by_name_odc", ++ "test_archive_write_set_format_by_name_oldtar", ++ "test_archive_write_set_format_by_name_pax", ++ "test_archive_write_set_format_by_name_paxr", ++ "test_archive_write_set_format_by_name_posix", ++ "test_archive_write_set_format_by_name_rpax", ++ "test_archive_write_set_format_by_name_shar", ++ "test_archive_write_set_format_by_name_shardump", ++ "test_archive_write_set_format_by_name_ustar", ++ "test_archive_write_set_format_by_name_v7tar", ++ "test_archive_write_set_format_by_name_v7", ++ "test_archive_write_set_format_by_name_warc", ++ "test_archive_write_set_format_by_name_xar", ++ "test_archive_write_set_format_by_name_zip", ++ ], ++) ++libarchive_test( ++ name = "test_archive_write_set_format_filter_by_ext", ++ deps = [":lib"], ++ tests = [ ++ "test_archive_write_set_format_filter_by_ext_7zip", ++ "test_archive_write_set_format_filter_by_ext_zip", ++ "test_archive_write_set_format_filter_by_ext_jar", ++ "test_archive_write_set_format_filter_by_ext_a", ++ "test_archive_write_set_format_filter_by_ext_ar", ++ "test_archive_write_set_format_filter_by_ext_cpio", ++ "test_archive_write_set_format_filter_by_ext_iso", ++ "test_archive_write_set_format_filter_by_ext_tar", ++ "test_archive_write_set_format_filter_by_ext_tar_gz", ++ "test_archive_write_set_format_filter_by_ext_tar_bz2", ++ "test_archive_write_set_format_filter_by_ext_tar_xz", ++ "test_archive_write_set_format_filter_by_no_ext_def_zip", ++ "test_archive_write_set_format_filter_by_ext_tar_bz2_def_zip", ++ ], ++) ++libarchive_test(name = "test_archive_write_set_format_option", deps = [":lib"]) ++libarchive_test(name = "test_archive_write_set_option", deps = [":lib"]) ++libarchive_test(name = "test_archive_write_set_options", deps = [":lib"]) ++libarchive_test( ++ name = "test_archive_write_set_passphrase", ++ deps = [":lib"], ++ tests = [ ++ "test_archive_write_set_passphrase", ++ "test_archive_write_set_passphrase_callback", ++ ], ++) ++libarchive_test(name = "test_bad_fd", deps = [":lib"]) ++libarchive_test(name = "test_compat_bzip2", deps = [":lib"]) ++libarchive_test(name = "test_compat_cpio", deps = [":lib"]) ++libarchive_test(name = "test_compat_gtar", deps = [":lib"]) ++libarchive_test(name = "test_compat_gzip", deps = [":lib"]) ++libarchive_test(name = "test_compat_lz4", deps = [":lib"]) ++libarchive_test(name = "test_compat_lzip", deps = [":lib"]) ++libarchive_test(name = "test_compat_lzma", deps = [":lib"]) ++libarchive_test(name = "test_compat_lzop", deps = [":lib"]) ++libarchive_test(name = "test_compat_mac", deps = [":lib"]) ++libarchive_test(name = "test_compat_perl_archive_tar", deps = [":lib"]) ++libarchive_test(name = "test_compat_plexus_archiver_tar", deps = [":lib"]) ++libarchive_test(name = "test_compat_solaris_pax_sparse", deps = [":lib"]) ++libarchive_test(name = "test_compat_solaris_tar_acl", deps = [":lib"]) ++libarchive_test( ++ name = "test_compat_star_acl", ++ deps = [":lib"], ++ tests = [ ++ "test_compat_star_acl_posix1e", ++ "test_compat_star_acl_nfs4", ++ ], ++) ++libarchive_test(name = "test_compat_tar_directory", deps = [":lib"]) ++libarchive_test(name = "test_compat_tar_hardlink", deps = [":lib"]) ++libarchive_test(name = "test_compat_uudecode", deps = [":lib"]) ++libarchive_test(name = "test_compat_uudecode_large", deps = [":lib"]) ++libarchive_test(name = "test_compat_xz", deps = [":lib"]) ++ ++libarchive_test( ++ name = "test_compat_zip", ++ deps = [":lib"], ++ tests = [ ++ "test_compat_zip_1", ++ "test_compat_zip_2", ++ "test_compat_zip_3", ++ "test_compat_zip_4", ++ "test_compat_zip_5", ++ "test_compat_zip_6", ++ "test_compat_zip_7", ++ "test_compat_zip_8", ++ ], ++) ++libarchive_test(name = "test_compat_zstd", deps = [":lib"]) ++libarchive_test(name = "test_empty_write", deps = [":lib"]) ++libarchive_test(name = "test_entry", deps = [":lib"]) ++libarchive_test(name = "test_entry_strmode", deps = [":lib"]) ++libarchive_test(name = "test_extattr_freebsd", deps = [":lib"]) ++libarchive_test(name = "test_filter_count", deps = [":lib"]) ++libarchive_test( ++ name = "test_fuzz", ++ size = "large", ++ deps = [":lib"], ++ tags = ["bcr_presubmit_skip"], # NOTE: runs too slow on Windows ++ tests = [ ++ "test_fuzz_ar", ++ "test_fuzz_cab", ++ "test_fuzz_cpio", ++ "test_fuzz_iso9660", ++ "test_fuzz_lzh", ++ "test_fuzz_mtree", ++ "test_fuzz_rar", ++ "test_fuzz_tar", ++ "test_fuzz_zip", ++ ], ++) ++libarchive_test( ++ name = "test_gnutar_filename_encoding", ++ deps = [":lib"], ++ tests = [ ++ "test_gnutar_filename_encoding_UTF8_CP866", ++ "test_gnutar_filename_encoding_KOI8R_UTF8", ++ "test_gnutar_filename_encoding_KOI8R_CP866", ++ "test_gnutar_filename_encoding_CP1251_UTF8", ++ "test_gnutar_filename_encoding_ru_RU_CP1251", ++ "test_gnutar_filename_encoding_Russian_Russia", ++ "test_gnutar_filename_encoding_EUCJP_UTF8", ++ "test_gnutar_filename_encoding_EUCJP_CP932", ++ ], ++) ++libarchive_test(name = "test_link_resolver", deps = [":lib"]) ++libarchive_test(name = "test_open_failure", deps = [":lib"]) ++libarchive_test(name = "test_open_fd", deps = [":lib"]) ++libarchive_test(name = "test_open_file", deps = [":lib"]) ++libarchive_test(name = "test_open_filename", deps = [":lib"]) ++libarchive_test( ++ name = "test_pax_filename_encoding", ++ deps = [":lib"], ++ tests = [ ++ "test_pax_filename_encoding_KOI8R", ++ "test_pax_filename_encoding_CP1251", ++ "test_pax_filename_encoding_EUCJP", ++ "test_pax_filename_encoding_CP932", ++ "test_pax_filename_encoding_KOI8R_BINARY", ++ "test_pax_filename_encoding_KOI8R_CP1251", ++ "test_pax_filename_encoding", ++ ], ++) ++libarchive_test(name = "test_pax_xattr_header", deps = [":lib"]) ++libarchive_test(name = "test_read_data_large", deps = [":lib"]) ++libarchive_test(name = "test_read_disk", deps = [":lib"]) ++libarchive_test(name = "test_read_disk_directory_traversals", deps = [":lib"]) ++libarchive_test(name = "test_read_disk_entry_from_file", deps = [":lib"]) ++libarchive_test(name = "test_read_extract", deps = [":lib"]) ++libarchive_test(name = "test_read_file_nonexistent", deps = [":lib"]) ++libarchive_test( ++ name = "test_read_filter_compress", ++ deps = [":lib"], ++ tests = [ ++ "test_read_filter_compress_truncated", ++ "test_read_filter_compress_empty2", ++ "test_read_filter_compress_invalid", ++ ], ++) ++libarchive_test(name = "test_read_filter_grzip", deps = [":lib"]) ++libarchive_test(name = "test_read_filter_lrzip", deps = [":lib"]) ++libarchive_test(name = "test_read_filter_lzop", deps = [":lib"]) ++libarchive_test(name = "test_read_filter_lzop_multiple_parts", deps = [":lib"]) ++libarchive_test(name = "test_read_filter_program", deps = [":lib"]) ++libarchive_test(name = "test_read_filter_program_signature", deps = [":lib"]) ++libarchive_test( ++ name = "test_read_filter_uudecode", ++ deps = [":lib"], ++ tests = [ ++ "test_read_filter_uudecode", ++ "test_read_filter_uudecode_base64", ++ ], ++) ++libarchive_test( ++ name = "test_read_filter_uudecode_raw", ++ deps = [":lib"], ++ tests = [ ++ "test_read_filter_uudecode_raw", ++ "test_read_filter_uudecode_base64_raw", ++ ], ++) ++libarchive_test( ++ name = "test_read_format_7zip", ++ deps = [":lib"], ++ tests = [ ++ "test_read_format_7zip", ++ "test_read_format_7zip_bzip2", ++ "test_read_format_7zip_from_fd", ++ "test_read_format_7zip_copy", ++ "test_read_format_7zip_deflate", ++ "test_read_format_7zip_zstd", ++ "test_read_format_7zip_zstd_solid", ++ "test_read_format_7zip_zstd_bcj", ++ "test_read_format_7zip_zstd_nobcj", ++ "test_read_format_7zip_empty", ++ "test_read_format_7zip_lzma1", ++ "test_read_format_7zip_lzma2", ++ "test_read_format_7zip_zstd_arm", ++ "test_read_format_7zip_lzma2_arm", ++ "test_read_format_7zip_ppmd", ++ "test_read_format_7zip_lzma2_arm64", ++ "test_read_format_7zip_deflate_arm64", ++ "test_read_format_7zip_win_attrib", ++ ], ++) ++libarchive_test(name = "test_read_format_7zip_encryption_data", deps = [":lib"]) ++libarchive_test(name = "test_read_format_7zip_encryption_header", deps = [":lib"]) ++libarchive_test(name = "test_read_format_7zip_encryption_partially", deps = [":lib"]) ++libarchive_test(name = "test_read_format_7zip_malformed", deps = [":lib"]) ++libarchive_test(name = "test_read_format_7zip_packinfo_digests", deps = [":lib"]) ++libarchive_test(name = "test_read_format_ar", deps = [":lib"]) ++libarchive_test(name = "test_read_format_cab", deps = [":lib"]) ++libarchive_test(name = "test_read_format_cab_filename", deps = [":lib"]) ++libarchive_test(name = "test_read_format_cpio_afio", deps = [":lib"]) ++libarchive_test(name = "test_read_format_cpio_bin", deps = [":lib"]) ++libarchive_test(name = "test_read_format_cpio_bin_Z", deps = [":lib"]) ++libarchive_test(name = "test_read_format_cpio_bin_be", deps = [":lib"]) ++libarchive_test(name = "test_read_format_cpio_bin_bz2", deps = [":lib"]) ++libarchive_test(name = "test_read_format_cpio_bin_gz", deps = [":lib"]) ++libarchive_test(name = "test_read_format_cpio_bin_le", deps = [":lib"]) ++libarchive_test(name = "test_read_format_cpio_bin_lzip", deps = [":lib"]) ++libarchive_test(name = "test_read_format_cpio_bin_lzma", deps = [":lib"]) ++libarchive_test(name = "test_read_format_cpio_bin_xz", deps = [":lib"]) ++libarchive_test( ++ name = "test_read_format_cpio_filename", ++ deps = [":lib"], ++ tests = [ ++ "test_read_format_cpio_filename_eucJP_UTF8", ++ "test_read_format_cpio_filename_UTF8_eucJP", ++ "test_read_format_cpio_filename_UTF8_UTF8_jp", ++ "test_read_format_cpio_filename_CP866_KOI8R", ++ "test_read_format_cpio_filename_CP866_UTF8", ++ "test_read_format_cpio_filename_KOI8R_CP866", ++ "test_read_format_cpio_filename_KOI8R_UTF8", ++ "test_read_format_cpio_filename_UTF8_KOI8R", ++ "test_read_format_cpio_filename_UTF8_CP866", ++ "test_read_format_cpio_filename_UTF8_UTF8_ru", ++ "test_read_format_cpio_filename_eucJP_CP932", ++ "test_read_format_cpio_filename_UTF8_CP932", ++ "test_read_format_cpio_filename_CP866_CP1251", ++ "test_read_format_cpio_filename_CP866_CP1251_win", ++ "test_read_format_cpio_filename_KOI8R_CP1251", ++ "test_read_format_cpio_filename_UTF8_CP1251", ++ ], ++) ++libarchive_test(name = "test_read_format_cpio_odc", deps = [":lib"]) ++libarchive_test(name = "test_read_format_cpio_svr4_bzip2_rpm", deps = [":lib"]) ++libarchive_test(name = "test_read_format_cpio_svr4_gzip", deps = [":lib"]) ++libarchive_test(name = "test_read_format_cpio_svr4_gzip_rpm", deps = [":lib"]) ++libarchive_test(name = "test_read_format_cpio_svr4c_Z", deps = [":lib"]) ++libarchive_test(name = "test_read_format_empty", deps = [":lib"]) ++libarchive_test( ++ name = "test_read_format_gtar_filename", ++ deps = [":lib"], ++ tests = [ ++ "test_read_format_gtar_filename_eucJP_UTF8", ++ "test_read_format_gtar_filename_CP866_KOI8R", ++ "test_read_format_gtar_filename_CP866_UTF8", ++ "test_read_format_gtar_filename_KOI8R_CP866", ++ "test_read_format_gtar_filename_KOI8R_UTF8", ++ "test_read_format_gtar_filename_eucJP_CP932", ++ "test_read_format_gtar_filename_CP866_CP1251", ++ "test_read_format_gtar_filename_CP866_CP1251_win", ++ ], ++) ++libarchive_test(name = "test_read_format_gtar_gz", deps = [":lib"]) ++libarchive_test(name = "test_read_format_gtar_lzma", deps = [":lib"]) ++libarchive_test(name = "test_read_format_gtar_sparse", deps = [":lib"]) ++libarchive_test(name = "test_read_format_gtar_sparse_skip_entry", deps = [":lib"]) ++libarchive_test(name = "test_read_format_iso_Z", deps = [":lib"]) ++libarchive_test(name = "test_read_format_iso_multi_extent", deps = [":lib"]) ++libarchive_test(name = "test_read_format_iso_xorriso", deps = [":lib"]) ++libarchive_test(name = "test_read_format_isojoliet_bz2", deps = [":lib"]) ++libarchive_test(name = "test_read_format_isojoliet_long", deps = [":lib"]) ++libarchive_test(name = "test_read_format_isojoliet_rr", deps = [":lib"]) ++libarchive_test(name = "test_read_format_isojoliet_versioned", deps = [":lib"]) ++libarchive_test(name = "test_read_format_isorr_bz2", deps = [":lib"]) ++libarchive_test(name = "test_read_format_isorr_ce", deps = [":lib"]) ++libarchive_test(name = "test_read_format_isorr_new_bz2", deps = [":lib"]) ++libarchive_test(name = "test_read_format_isorr_rr_moved", deps = [":lib"]) ++libarchive_test(name = "test_read_format_isozisofs_bz2", deps = [":lib"]) ++libarchive_test(name = "test_read_format_lha", deps = [":lib"]) ++libarchive_test(name = "test_read_format_lha_bugfix_0", deps = [":lib"]) ++libarchive_test(name = "test_read_format_lha_filename", deps = [":lib"]) ++libarchive_test( ++ name = "test_read_format_lha_filename_utf16", ++ deps = [":lib"], ++ tests = [ ++ "test_read_format_lha_filename_UTF16", ++ ], ++) ++libarchive_test(name = "test_read_format_mtree", deps = [":lib"]) ++libarchive_test(name = "test_read_format_mtree_crash747", deps = [":lib"]) ++libarchive_test(name = "test_read_format_pax_bz2", deps = [":lib"]) ++libarchive_test( ++ name = "test_read_format_rar", ++ deps = [":lib"], ++ tags = ["bcr_presubmit_skip"], # TODO: failing on Windows ++ tests = [ ++ "test_read_format_rar_set_format", ++ "test_read_format_rar_basic", ++ "test_read_format_rar_subblock", ++ "test_read_format_rar_noeof", ++ "test_read_format_rar_unicode_UTF8", ++ "test_read_format_rar_unicode_CP932", ++ "test_read_format_rar_compress_normal", ++ "test_read_format_rar_multi_lzss_blocks", ++ "test_read_format_rar_compress_best", ++ "test_read_format_rar_ppmd_lzss_conversion", ++ "test_read_format_rar_binary", ++ "test_read_format_rar_windows", ++ "test_read_format_rar_multivolume", ++ "test_read_format_rar_multivolume_w", ++ "test_read_format_rar_multivolume_skip", ++ "test_read_format_rar_sfx", ++ "test_read_format_rar_multivolume_stored_file", ++ "test_read_format_rar_multivolume_stored_file_skip", ++ "test_read_format_rar_multivolume_seek_data", ++ "test_read_format_rar_multivolume_seek_multiple_files", ++ "test_read_format_rar_multivolume_uncompressed_files", ++ "test_read_format_rar_ppmd_use_after_free", ++ "test_read_format_rar_ppmd_use_after_free2", ++ ], ++) ++libarchive_test( ++ name = "test_read_format_rar5", ++ deps = [":lib"], ++ tags = ["bcr_presubmit_skip"], # TODO: failing on Windows ++ tests = [ ++ "test_read_format_rar5_set_format", ++ "test_read_format_rar5_stored", ++ "test_read_format_rar5_compressed", ++ "test_read_format_rar5_multiple_files", ++ "test_read_format_rar5_multiple_files_solid", ++ "test_read_format_rar5_multiarchive_skip_all", ++ "test_read_format_rar5_multiarchive_skip_all_but_first", ++ "test_read_format_rar5_multiarchive_skip_all_but_second", ++ "test_read_format_rar5_blake2", ++ "test_read_format_rar5_arm_filter", ++ "test_read_format_rar5_stored_skip_all", ++ "test_read_format_rar5_stored_skip_in_part", ++ "test_read_format_rar5_stored_skip_all_but_first", ++ "test_read_format_rar5_stored_skip_all_in_part", ++ "test_read_format_rar5_multiarchive_solid_extr_all", ++ "test_read_format_rar5_multiarchive_solid_skip_all", ++ "test_read_format_rar5_multiarchive_solid_skip_all_but_first", ++ "test_read_format_rar5_multiarchive_solid_skip_all_but_scnd", ++ "test_read_format_rar5_multiarchive_solid_skip_all_but_third", ++ "test_read_format_rar5_multiarchive_solid_skip_all_but_last", ++ "test_read_format_rar5_solid_skip_all", ++ "test_read_format_rar5_solid_skip_all_but_first", ++ "test_read_format_rar5_solid_skip_all_but_second", ++ "test_read_format_rar5_solid_skip_all_but_last", ++ "test_read_format_rar5_extract_win32", ++ "test_read_format_rar5_unicode", ++ "test_read_format_rar5_block_by_block", ++ "test_read_format_rar5_owner", ++ "test_read_format_rar5_symlink", ++ "test_read_format_rar5_hardlink", ++ "test_read_format_rar5_extra_field_version", ++ "test_read_format_rar5_readtables_overflow", ++ "test_read_format_rar5_leftshift1", ++ "test_read_format_rar5_leftshift2", ++ "test_read_format_rar5_truncated_huff", ++ "test_read_format_rar5_invalid_dict_reference", ++ "test_read_format_rar5_distance_overflow", ++ "test_read_format_rar5_nonempty_dir_stream", ++ "test_read_format_rar5_fileattr", ++ "test_read_format_rar5_different_window_size", ++ "test_read_format_rar5_window_buf_and_size_desync", ++ "test_read_format_rar5_arm_filter_on_window_boundary", ++ "test_read_format_rar5_different_solid_window_size", ++ "test_read_format_rar5_different_winsize_on_merge", ++ "test_read_format_rar5_block_size_is_too_small", ++ "test_read_format_rar5_sfx", ++ "test_read_format_rar5_decode_number_out_of_bounds_read", ++ "test_read_format_rar5_bad_window_size_in_multiarchive_file", ++ "test_read_format_rar5_read_data_block_uninitialized_offset", ++ ], ++) ++libarchive_test(name = "test_read_format_rar_encryption_data", deps = [":lib"]) ++libarchive_test(name = "test_read_format_rar_encryption_header", deps = [":lib"]) ++libarchive_test(name = "test_read_format_rar_encryption_partially", deps = [":lib"]) ++libarchive_test(name = "test_read_format_rar_filter", deps = [":lib"]) ++libarchive_test(name = "test_read_format_rar_invalid1", deps = [":lib"]) ++libarchive_test(name = "test_read_format_raw", deps = [":lib"]) ++libarchive_test(name = "test_read_format_tar", deps = [":lib"]) ++libarchive_test(name = "test_read_format_tar_concatenated", deps = [":lib"]) ++libarchive_test(name = "test_read_format_tar_empty_filename", deps = [":lib"]) ++libarchive_test(name = "test_read_format_tar_empty_pax", deps = [":lib"]) ++libarchive_test(name = "test_read_format_tar_empty_with_gnulabel", deps = [":lib"]) ++libarchive_test(name = "test_read_format_tar_filename", deps = [":lib"]) ++libarchive_test(name = "test_read_format_tar_invalid_pax_size", deps = [":lib"]) ++libarchive_test(name = "test_read_format_tbz", deps = [":lib"]) ++libarchive_test(name = "test_read_format_tgz", deps = [":lib"]) ++libarchive_test(name = "test_read_format_tlz", deps = [":lib"]) ++libarchive_test(name = "test_read_format_txz", deps = [":lib"]) ++libarchive_test(name = "test_read_format_tz", deps = [":lib"]) ++libarchive_test(name = "test_read_format_ustar_filename", deps = [":lib"]) ++libarchive_test(name = "test_read_format_warc", deps = [":lib"]) ++libarchive_test(name = "test_read_format_xar", deps = [":lib"]) ++libarchive_test( ++ name = "test_read_format_zip", ++ deps = [":lib"], ++ tests = [ ++ "test_read_format_zip", ++ "test_read_format_zip_ppmd_one_file", ++ "test_read_format_zip_ppmd_one_file_blockread", ++ "test_read_format_zip_ppmd_multi", ++ "test_read_format_zip_ppmd_multi_blockread", ++ "test_read_format_zip_lzma_one_file", ++ "test_read_format_zip_lzma_one_file_blockread", ++ "test_read_format_zip_lzma_multi", ++ "test_read_format_zip_lzma_multi_blockread", ++ "test_read_format_zip_bzip2_one_file", ++ "test_read_format_zip_bzip2_one_file_blockread", ++ "test_read_format_zip_bzip2_multi", ++ "test_read_format_zip_bzip2_multi_blockread", ++ "test_read_format_zip_zstd_one_file", ++ "test_read_format_zip_zstd_one_file_blockread", ++ "test_read_format_zip_zstd_multi", ++ "test_read_format_zip_zstd_multi_blockread", ++ "test_read_format_zip_xz_multi", ++ "test_read_format_zip_xz_multi_blockread", ++ "test_read_format_zip_ppmd8_crash_1", ++ "test_read_format_zip_bz2_hang_on_invalid", ++ "test_read_format_zip_ppmd8_crash_2", ++ "test_read_format_zip_lzma_alone_leak", ++ "test_read_format_zip_lzma_stream_end", ++ "test_read_format_zip_lzma_stream_end_blockread", ++ "test_read_format_zip_7z_lzma", ++ "test_read_format_zip_7z_deflate", ++ ], ++) ++libarchive_test( ++ name = "test_read_format_zip_7075_utf8_paths", ++ deps = [":lib"], ++ tests = [ ++ "test_read_format_zip_utf8_paths", ++ ], ++) ++libarchive_test(name = "test_read_format_zip_comment_stored", deps = [":lib"]) ++libarchive_test(name = "test_read_format_zip_encryption_data", deps = [":lib"]) ++libarchive_test(name = "test_read_format_zip_encryption_header", deps = [":lib"]) ++libarchive_test(name = "test_read_format_zip_encryption_partially", deps = [":lib"]) ++libarchive_test(name = "test_read_format_zip_extra_padding", deps = [":lib"]) ++libarchive_test( ++ name = "test_read_format_zip_filename", ++ deps = [":lib"], ++ tests = [ ++ "test_read_format_zip_filename_CP932_eucJP", ++ "test_read_format_zip_filename_CP932_UTF8", ++ "test_read_format_zip_filename_UTF8_eucJP", ++ "test_read_format_zip_filename_UTF8_UTF8", ++ "test_read_format_zip_filename_CP866_KOI8R", ++ "test_read_format_zip_filename_CP866_UTF8", ++ "test_read_format_zip_filename_KOI8R_CP866", ++ "test_read_format_zip_filename_KOI8R_UTF8", ++ "test_read_format_zip_filename_UTF8_KOI8R", ++ "test_read_format_zip_filename_UTF8_CP866", ++ "test_read_format_zip_filename_UTF8_UTF8_ru", ++ "test_read_format_zip_filename_CP932_CP932", ++ "test_read_format_zip_filename_UTF8_CP932", ++ "test_read_format_zip_filename_CP866_CP1251", ++ "test_read_format_zip_filename_CP866_CP1251_win", ++ "test_read_format_zip_filename_KOI8R_CP1251", ++ "test_read_format_zip_filename_UTF8_CP1251", ++ "test_read_format_zip_filename_KOI8R_UTF8_2", ++ ], ++) ++libarchive_test( ++ name = "test_read_format_zip_high_compression", ++ deps = [":lib"], ++ tests = [ ++ "test_read_format_zip_high_compression", ++ "test_read_format_zip_high_compression2", ++ ], ++) ++libarchive_test(name = "test_read_format_zip_jar", deps = [":lib"]) ++libarchive_test(name = "test_read_format_zip_mac_metadata", deps = [":lib"]) ++libarchive_test(name = "test_read_format_zip_malformed", deps = [":lib"]) ++libarchive_test(name = "test_read_format_zip_msdos", deps = [":lib"]) ++libarchive_test(name = "test_read_format_zip_nested", deps = [":lib"]) ++libarchive_test(name = "test_read_format_zip_nofiletype", deps = [":lib"]) ++libarchive_test( ++ name = "test_read_format_zip_padded", ++ deps = [":lib"], ++ tests = [ ++ "test_read_format_zip_padded1", ++ "test_read_format_zip_padded2", ++ "test_read_format_zip_padded3", ++ ], ++) ++libarchive_test(name = "test_read_format_zip_sfx", deps = [":lib"]) ++libarchive_test(name = "test_read_format_zip_traditional_encryption_data", deps = [":lib"]) ++libarchive_test( ++ name = "test_read_format_zip_winzip_aes", ++ deps = [":lib"], ++ tests = [ ++ "test_read_format_zip_winzip_aes128", ++ "test_read_format_zip_winzip_aes256", ++ "test_read_format_zip_winzip_aes256_stored", ++ ], ++) ++libarchive_test( ++ name = "test_read_format_zip_winzip_aes_large", ++ deps = [":lib"], ++ tests = [ ++ "test_read_format_zip_winzip_aes256_large", ++ ], ++) ++libarchive_test(name = "test_read_format_zip_with_invalid_traditional_eocd", deps = [":lib"]) ++libarchive_test( ++ name = "test_read_format_zip_zip64", ++ deps = [":lib"], ++ tests = [ ++ "test_read_format_zip_zip64a", ++ "test_read_format_zip_zip64b", ++ ], ++) ++libarchive_test(name = "test_read_large", deps = [":lib"]) ++libarchive_test(name = "test_read_pax_truncated", deps = [":lib"]) ++libarchive_test(name = "test_read_pax_xattr_rht_security_selinux", deps = [":lib"]) ++libarchive_test(name = "test_read_pax_xattr_schily", deps = [":lib"]) ++libarchive_test(name = "test_read_position", deps = [":lib"]) ++libarchive_test( ++ name = "test_read_set_format", ++ deps = [":lib"], ++ tags = ["bcr_presubmit_skip"], # TODO: failing on Windows ++ tests = [ ++ "test_read_set_format", ++ "test_read_set_wrong_format", ++ "test_read_append_filter", ++ "test_read_append_wrong_filter", ++ "test_read_append_filter_program", ++ "test_read_append_filter_wrong_program", ++ ], ++) ++libarchive_test(name = "test_read_too_many_filters", deps = [":lib"]) ++libarchive_test(name = "test_read_truncated", deps = [":lib"]) ++libarchive_test( ++ name = "test_read_truncated_filter", ++ deps = [":lib"], ++ tags = ["bcr_presubmit_skip"], # NOTE: runs too slow on Windows ++ tests = [ ++ "test_read_truncated_filter_bzip2", ++ "test_read_truncated_filter_compress", ++ "test_read_truncated_filter_gzip", ++ "test_read_truncated_filter_lzip", ++ "test_read_truncated_filter_lzma", ++ "test_read_truncated_filter_lzop", ++ "test_read_truncated_filter_xz", ++ ], ++) ++libarchive_test(name = "test_short_writes", deps = [":lib"]) ++libarchive_test( ++ name = "test_sparse_basic", ++ deps = [":lib"], ++ tests = [ ++ # TODO: tests_sparse_basic not passing on macOS ++ # "test_sparse_basic", ++ "test_fully_sparse_files", ++ ], ++) ++libarchive_test(name = "test_tar_filenames", deps = [":lib"]) ++libarchive_test(name = "test_tar_large", deps = [":lib"]) ++libarchive_test( ++ name = "test_ustar_filename_encoding", ++ deps = [":lib"], ++ tests = [ ++ "test_ustar_filename_encoding_UTF8_CP866", ++ "test_ustar_filename_encoding_KOI8R_UTF8", ++ "test_ustar_filename_encoding_KOI8R_CP866", ++ "test_ustar_filename_encoding_CP1251_UTF8", ++ "test_ustar_filename_encoding_ru_RU_CP1251", ++ "test_ustar_filename_encoding_Russian_Russia", ++ "test_ustar_filename_encoding_EUCJP_UTF8", ++ "test_ustar_filename_encoding_EUCJP_CP932", ++ "test_ustar_filename_encoding_CP932_UTF8", ++ ], ++) ++libarchive_test(name = "test_ustar_filenames", deps = [":lib"]) ++libarchive_test(name = "test_warn_missing_hardlink_target", deps = [":lib"]) ++libarchive_test(name = "test_write_disk", deps = [":lib"]) ++libarchive_test(name = "test_write_disk_appledouble", deps = [":lib"]) ++libarchive_test(name = "test_write_disk_failures", deps = [":lib"]) ++libarchive_test(name = "test_write_disk_fixup", deps = [":lib"]) ++libarchive_test(name = "test_write_disk_hardlink", deps = [":lib"]) ++libarchive_test(name = "test_write_disk_hfs_compression", deps = [":lib"]) ++libarchive_test(name = "test_write_disk_lookup", deps = [":lib"]) ++libarchive_test(name = "test_write_disk_mac_metadata", deps = [":lib"]) ++libarchive_test(name = "test_write_disk_no_hfs_compression", deps = [":lib"]) ++libarchive_test( ++ name = "test_write_disk_perms", ++ deps = [":lib"], ++ target_compatible_with = select({ ++ # TODO: not working on macos ++ "@platforms//os:macos": ["@platforms//:incompatible"], ++ "//conditions:default": [], ++ }), ++) ++libarchive_test(name = "test_write_disk_secure", deps = [":lib"]) ++libarchive_test(name = "test_write_disk_secure744", deps = [":lib"]) ++libarchive_test(name = "test_write_disk_secure745", deps = [":lib"]) ++libarchive_test( ++ name = "test_write_disk_secure746", ++ deps = [":lib"], ++ tests = [ ++ "test_write_disk_secure746a", ++ "test_write_disk_secure746b", ++ ], ++) ++libarchive_test(name = "test_write_disk_sparse", deps = [":lib"]) ++libarchive_test(name = "test_write_disk_symlink", deps = [":lib"]) ++libarchive_test(name = "test_write_disk_times", deps = [":lib"]) ++libarchive_test(name = "test_write_filter_b64encode", deps = [":lib"]) ++libarchive_test(name = "test_write_filter_bzip2", deps = [":lib"]) ++libarchive_test(name = "test_write_filter_compress", deps = [":lib"]) ++libarchive_test(name = "test_write_filter_gzip", deps = [":lib"]) ++libarchive_test( ++ name = "test_write_filter_gzip_timestamp", ++ deps = [":lib"], ++ tags = ["bcr_presubmit_skip"], # TODO: failing on Windows ++) ++libarchive_test(name = "test_write_filter_lrzip", deps = [":lib"]) ++libarchive_test(name = "test_write_filter_lz4", deps = [":lib"]) ++libarchive_test(name = "test_write_filter_lzip", deps = [":lib"]) ++libarchive_test(name = "test_write_filter_lzma", deps = [":lib"]) ++libarchive_test(name = "test_write_filter_lzop", deps = [":lib"]) ++libarchive_test(name = "test_write_filter_program", deps = [":lib"]) ++libarchive_test(name = "test_write_filter_uuencode", deps = [":lib"]) ++libarchive_test(name = "test_write_filter_xz", deps = [":lib"]) ++libarchive_test(name = "test_write_filter_zstd", deps = [":lib"]) ++libarchive_test( ++ name = "test_write_format_7zip", ++ deps = [":lib"], ++ tests = [ ++ "test_write_format_7zip", ++ "test_write_format_7zip_basic_bzip2", ++ "test_write_format_7zip_basic_copy", ++ "test_write_format_7zip_basic_deflate", ++ "test_write_format_7zip_basic_lzma1", ++ "test_write_format_7zip_basic_lzma2", ++ "test_write_format_7zip_basic_ppmd", ++ ], ++) ++libarchive_test( ++ name = "test_write_format_7zip_empty", ++ deps = [":lib"], ++ tests = [ ++ "test_write_format_7zip_empty_archive", ++ "test_write_format_7zip_empty_files", ++ ], ++) ++libarchive_test( ++ name = "test_write_format_7zip_large", ++ deps = [":lib"], ++ tests = [ ++ "test_write_format_7zip_large_bzip2", ++ "test_write_format_7zip_large_copy", ++ "test_write_format_7zip_large_deflate", ++ "test_write_format_7zip_large_lzma1", ++ "test_write_format_7zip_large_lzma2", ++ "test_write_format_7zip_large_ppmd", ++ ], ++) ++libarchive_test(name = "test_write_format_ar", deps = [":lib"]) ++libarchive_test(name = "test_write_format_cpio", deps = [":lib"]) ++libarchive_test(name = "test_write_format_cpio_empty", deps = [":lib"]) ++libarchive_test(name = "test_write_format_cpio_newc", deps = [":lib"]) ++libarchive_test(name = "test_write_format_cpio_odc", deps = [":lib"]) ++libarchive_test(name = "test_write_format_gnutar", deps = [":lib"]) ++libarchive_test( ++ name = "test_write_format_gnutar_filenames", ++ deps = [":lib"], ++ tests = [ ++ "test_write_format_gnutar_filenames", ++ "test_write_format_gnutar_linknames", ++ ], ++) ++libarchive_test( ++ name = "test_write_format_iso9660", ++ deps = [":lib"], ++ tags = ["bcr_presubmit_skip"], # TODO: failing on macOS arm64 ++) ++libarchive_test( ++ name = "test_write_format_iso9660_boot", ++ deps = [":lib"], ++ tags = ["bcr_presubmit_skip"], # TODO: failing on macOS arm64 ++) ++libarchive_test(name = "test_write_format_iso9660_empty", deps = [":lib"]) ++libarchive_test( ++ name = "test_write_format_iso9660_filename", ++ deps = [":lib"], ++ tags = ["bcr_presubmit_skip"], # TODO: failing on macOS arm64 ++) ++libarchive_test( ++ name = "test_write_format_iso9660_zisofs", ++ deps = [":lib"], ++ tags = ["bcr_presubmit_skip"], # TODO: failing on macOS arm64 ++) ++libarchive_test( ++ name = "test_write_format_mtree", ++ deps = [":lib"], ++ tests = [ ++ "test_write_format_mtree", ++ "test_write_format_mtree_no_leading_dotslash", ++ ], ++) ++libarchive_test(name = "test_write_format_mtree_absolute_path", deps = [":lib"]) ++libarchive_test(name = "test_write_format_mtree_classic", deps = [":lib"]) ++libarchive_test(name = "test_write_format_mtree_classic_indent", deps = [":lib"]) ++libarchive_test(name = "test_write_format_mtree_fflags", deps = [":lib"]) ++libarchive_test(name = "test_write_format_mtree_no_separator", deps = [":lib"]) ++libarchive_test(name = "test_write_format_mtree_quoted_filename", deps = [":lib"]) ++libarchive_test(name = "test_write_format_pax", deps = [":lib"]) ++libarchive_test(name = "test_write_format_raw", deps = [":lib"]) ++libarchive_test(name = "test_write_format_raw_b64", deps = [":lib"]) ++libarchive_test(name = "test_write_format_shar_empty", deps = [":lib"]) ++libarchive_test(name = "test_write_format_tar", deps = [":lib"]) ++libarchive_test(name = "test_write_format_tar_empty", deps = [":lib"]) ++libarchive_test(name = "test_write_format_tar_sparse", deps = [":lib"]) ++libarchive_test(name = "test_write_format_tar_ustar", deps = [":lib"]) ++libarchive_test(name = "test_write_format_tar_v7tar", deps = [":lib"]) ++libarchive_test(name = "test_write_format_warc", deps = [":lib"]) ++libarchive_test(name = "test_write_format_warc_empty", deps = [":lib"]) ++libarchive_test(name = "test_write_format_xar", deps = [":lib"]) ++libarchive_test(name = "test_write_format_xar_empty", deps = [":lib"]) ++libarchive_test( ++ name = "test_write_format_zip", ++ deps = [":lib"], ++ tests = [ ++ "test_write_format_zip", ++ "test_write_format_zip64", ++ "test_write_format_zip_traditional_pkware_encryption", ++ "test_write_format_zip_winzip_aes128_encryption", ++ "test_write_format_zip_winzip_aes256_encryption", ++ ], ++) ++libarchive_test(name = "test_write_format_zip64_stream", deps = [":lib"]) ++libarchive_test(name = "test_write_format_zip_compression_store", deps = [":lib"]) ++libarchive_test(name = "test_write_format_zip_empty", deps = [":lib"]) ++libarchive_test(name = "test_write_format_zip_empty_zip64", deps = [":lib"]) ++libarchive_test(name = "test_write_format_zip_entry_size_unset", deps = [":lib"], tests = ["test_write_format_zip_size_unset"]) ++libarchive_test(name = "test_write_format_zip_file", deps = [":lib"]) ++libarchive_test(name = "test_write_format_zip_file_zip64", deps = [":lib"]) ++libarchive_test(name = "test_write_format_zip_large", deps = [":lib"]) ++ ++# TODO: figure out why this test fails with Bazel ++libarchive_test(name = "test_write_format_zip_stream", deps = [":lib"], tags = ["manual"]) ++ ++libarchive_test( ++ name = "test_write_format_zip_zip64", ++ deps = [":lib"], ++ tests = [ ++ "test_write_format_zip_zip64_oversize", ++ ], ++) ++libarchive_test(name = "test_write_open_memory", deps = [":lib"]) ++libarchive_test( ++ name = "test_write_read_format_zip", ++ deps = [":lib"], ++ tests = [ ++ "test_write_read_format_zip", ++ "test_write_read_format_zip_improved_streaming", ++ "test_write_read_format_zip64", ++ "test_write_read_format_zip64_improved_streaming", ++ ], ++) ++libarchive_test(name = "test_xattr_platform", deps = [":lib"]) ++libarchive_test( ++ name = "test_zip_filename_encoding", ++ deps = [":lib"], ++ tests = [ ++ "test_zip_filename_encoding_UTF8", ++ "test_zip_filename_encoding_KOI8R", ++ "test_zip_filename_encoding_ru_RU_CP1251", ++ "test_zip_filename_encoding_Russian_Russia", ++ "test_zip_filename_encoding_EUCJP", ++ "test_zip_filename_encoding_CP932", ++ ], ++) ++ ++cc_library( ++ name = "lib", ++ strip_include_prefix = ".", ++ hdrs = ["test.h"], ++ srcs = ["read_open_memory.c"], ++ linkopts = select({ ++ # tests override some methods in libarchive ++ # SEE: read_open_memory.c ++ "@rules_cc//cc/compiler:msvc-cl": ["/IGNORE:4217"], ++ "//conditions:default": [], ++ }), ++ deps = [ ++ "//:config", ++ "//test_utils:common", ++ ], ++) +diff --git a/libarchive_bazel_generic_config.h b/libarchive_bazel_generic_config.h +new file mode 100644 +index 00000000..c998c9f0 +--- /dev/null ++++ b/libarchive_bazel_generic_config.h +@@ -0,0 +1,187 @@ ++#define __LIBARCHIVE_CONFIG_H_INCLUDED 1 ++ ++#define BSDCPIO_VERSION_STRING "3.7.3" ++#define BSDTAR_VERSION_STRING "3.7.3" ++#define BSDCAT_VERSION_STRING "3.7.3" ++#define BSDUNZIP_VERSION_STRING "3.7.3" ++#define LIBARCHIVE_VERSION_NUMBER "3007003" ++#define LIBARCHIVE_VERSION_STRING "3.7.3" ++#define VERSION "3.7.3" ++ ++#define HAVE_DECL_SIZE_MAX 1 ++#define HAVE_DECL_SSIZE_MAX 1 ++#define HAVE_DECL_UINT32_MAX 1 ++#define HAVE_DECL_INT32_MAX 1 ++#define HAVE_DECL_INT32_MIN 1 ++#define HAVE_DECL_UINT64_MAX 1 ++#define HAVE_DECL_INT64_MAX 1 ++#define HAVE_DECL_INT64_MIN 1 ++#define HAVE_DECL_UINTMAX_MAX 1 ++#define HAVE_DECL_INTMAX_MAX 1 ++#define HAVE_DECL_INTMAX_MIN 1 ++ ++#define HAVE_CHOWN 1 ++#define HAVE_CTYPE_H 1 ++#define HAVE_DIRENT_H 1 ++#define HAVE_DLFCN_H 1 ++#define HAVE_EILSEQ 1 ++#define HAVE_ERRNO_H 1 ++#define HAVE_FCNTL_H 1 ++#define HAVE_FSEEKO 1 ++#define HAVE_FSTAT 1 ++#define HAVE_FTRUNCATE 1 ++#define HAVE_GETPID 1 ++#define HAVE_INTMAX_T 1 ++#define HAVE_INTTYPES_H 1 ++#define HAVE_LIMITS_H 1 ++#define HAVE_LOCALE_H 1 ++#define HAVE_LONG_LONG_INT 1 ++#define HAVE_MBRTOWC 1 ++#define HAVE_MEMMOVE 1 ++#define HAVE_MEMORY_H 1 ++#define HAVE_MEMSET 1 ++#define HAVE_MKDIR 1 ++#define HAVE_PTHREAD_H 1 ++#define HAVE_READDIR_R 1 ++#define HAVE_SETLOCALE 1 ++#define HAVE_SIGNAL_H 1 ++#define HAVE_STDARG_H 1 ++#define HAVE_STDINT_H 1 ++#define HAVE_STDLIB_H 1 ++#define HAVE_STRCHR 1 ++#define HAVE_STRDUP 1 ++#define HAVE_STRERROR 1 ++#define HAVE_STRFTIME 1 ++#define HAVE_STRINGS_H 1 ++#define HAVE_STRING_H 1 ++#define HAVE_STRRCHR 1 ++#define HAVE_SYS_PARAM_H 1 ++#define HAVE_SYS_STAT_H 1 ++#define HAVE_SYS_TIME_H 1 ++#define HAVE_SYS_TYPES_H 1 ++#define HAVE_TIME_H ++#define HAVE_TZSET 1 ++#define HAVE_UINTMAX_T 1 ++#define HAVE_UNSIGNED_LONG_LONG 1 ++#define HAVE_UNSIGNED_LONG_LONG_INT 1 ++#define HAVE_UTIME 1 ++#define HAVE_UTIME_H 1 ++#define HAVE_VPRINTF 1 ++#define HAVE_WCHAR_H 1 ++#define HAVE_WCHAR_T 1 ++#define HAVE_WCRTOMB 1 ++#define HAVE_WCSCMP 1 ++#define HAVE_WCSCPY 1 ++#define HAVE_WCSLEN 1 ++#define HAVE_WCTOMB 1 ++#define HAVE_WCTYPE_H 1 ++#define HAVE_WMEMCMP 1 ++#define HAVE_WMEMCPY 1 ++ ++#define STDC_HEADERS 1 ++#define HAVE_SYS_TIME_H 1 ++ ++#define HAVE_CHROOT 1 ++#define HAVE_CTIME_R 1 ++#define HAVE_DIRFD 1 ++#define HAVE_FCHDIR 1 ++#define HAVE_FCHMOD 1 ++#define HAVE_FCHOWN 1 ++#define HAVE_FCNTL 1 ++#define HAVE_FDOPENDIR 1 ++#define HAVE_FGETXATTR 1 ++#define HAVE_FLISTXATTR 1 ++#define HAVE_FORK 1 ++#define HAVE_FSETXATTR 1 ++#define HAVE_FSTATAT 1 ++#define HAVE_FSTATFS 1 ++#define HAVE_FSTATVFS 1 ++#define HAVE_FUTIMENS 1 ++#define HAVE_FUTIMES 1 ++#define HAVE_GETEUID 1 ++#define HAVE_GETGRGID_R 1 ++#define HAVE_GETGRNAM_R 1 ++#define HAVE_GETPWNAM_R 1 ++#define HAVE_GETPWUID_R 1 ++#define HAVE_GETXATTR 1 ++#define HAVE_GMTIME_R 1 ++#define HAVE_GRP_H 1 ++#define HAVE_LANGINFO_H 1 ++#define HAVE_LCHOWN 1 ++#define HAVE_LGETXATTR 1 ++#define HAVE_LINK 1 ++#define HAVE_LISTXATTR 1 ++#define HAVE_LLISTXATTR 1 ++#define HAVE_LOCALTIME_R 1 ++#define HAVE_LSETXATTR 1 ++#define HAVE_LSTAT 1 ++#define HAVE_LUTIMES 1 ++#define HAVE_MKFIFO 1 ++#define HAVE_MKNOD 1 ++#define HAVE_MKSTEMP 1 ++#define HAVE_NL_LANGINFO 1 ++#define HAVE_OPENAT 1 ++#define HAVE_PIPE 1 ++#define HAVE_POLL 1 ++#define HAVE_POLL_H 1 ++#define HAVE_POSIX_SPAWNP 1 ++#define HAVE_PWD_H 1 ++#define HAVE_READLINK 1 ++#define HAVE_READLINKAT 1 ++#define HAVE_REGEX_H 1 ++#define HAVE_SELECT 1 ++#define HAVE_SIGACTION 1 ++#define HAVE_SPAWN_H 1 ++#define HAVE_STATFS 1 ++#define HAVE_STAVTFS 1 ++#define HAVE_STRERROR_R 1 ++#define HAVE_STRUCT_STAT_ST_BLKSIZE 1 ++#define HAVE_STRUCT_TM_TM_GMTOFF 1 ++#define HAVE_SYMLINK 1 ++#define HAVE_SYS_IOCTL_H 1 ++#define HAVE_SYS_MOUNT_H 1 ++#define HAVE_SYS_POLL_H 1 ++#define HAVE_SYS_SELECT_H 1 ++#define HAVE_SYS_UTSNAME_H 1 ++#define HAVE_SYS_VFS_H 1 ++#define HAVE_SYS_WAIT_H 1 ++#define HAVE_TIMEGM 1 ++#define HAVE_UNISTD_H 1 ++#define HAVE_UNSETENV 1 ++#define HAVE_UTIMENSAT 1 ++#define HAVE_UTIMES 1 ++#define HAVE_VFORK 1 ++#define LSTAT_FOLLOWS_SLASHED_SYMLINK 1 ++#define STRERROR_R_CHAR_P 1 ++ ++#define HAVE_ZLIB_H 1 ++#define HAVE_ZSTD_H 1 ++#define HAVE_LIBZSTD 1 ++#define HAVE_LIBZSTD_COMPRESSOR 1 ++#define HAVE_LIBLZMA 1 ++#define HAVE_LZMA_H 1 ++#define HAVE_LZMA_STREAM_ENCODER_MT 1 ++#define HAVE_LIBBZ2 1 ++#define HAVE_BZLIB_H 1 ++#define HAVE_LIBLZ4 1 ++#define HAVE_LZ4_H 1 ++#define HAVE_LZ4HC_H 1 ++ ++#ifdef __APPLE__ ++#define MAC_OS_X_VERSION_MIN_REQUIRED 1060 ++#define MAC_OS_X_VERSION_MAX_ALLOWED 1070 ++#define HAVE_STRUCT_STAT_ST_BIRTHTIME 1 ++#define HAVE_SYS_CDEFS_H 1 ++#endif ++ ++#ifdef __linux__ ++#if (defined(__GNUC__) && !defined(__clang__)) ++#define HAVE_FUTIMESAT 1 ++#endif ++#define HAVE_LINUX_FS_H 1 ++#define HAVE_LINUX_MAGIC_H 1 ++#define HAVE_LINUX_TYPES_H 1 ++#define HAVE_PATHS_H 1 ++#define HAVE_STRUCT_STAT_ST_MTIM_TV_NSEC 1 ++#define HAVE_SYS_XATTR_H 1 ++#endif +diff --git a/libarchive_bazel_windows_config.h b/libarchive_bazel_windows_config.h +new file mode 100644 +index 00000000..baf68cff +--- /dev/null ++++ b/libarchive_bazel_windows_config.h +@@ -0,0 +1,110 @@ ++#define __LIBARCHIVE_CONFIG_H_INCLUDED 1 ++ ++#define HAVE_INT16_T ++#define HAVE_INT32_T ++#define HAVE_INT64_T ++#define HAVE_INTMAX_T ++ ++#define HAVE_UINT8_T ++#define HAVE_UINT16_T ++#define HAVE_UINT32_T ++#define HAVE_UINT64_T ++#define HAVE_UINTMAX_T ++ ++#define SIZEOF_SHORT 2 ++#define SIZEOF_INT 4 ++#define SIZEOF_LONG 4 ++#define SIZEOF_LONG_LONG 8 ++#define SIZEOF_UNSIGNED_SHORT 2 ++#define SIZEOF_UNSIGNED 4 ++#define SIZEOF_UNSIGNED_LONG 4 ++#define SIZEOF_UNSIGNED_LONG_LONG 8 ++ ++#define ARCHIVE_CRYPTO_MD5_WIN 1 ++#define ARCHIVE_CRYPTO_SHA1_WIN 1 ++#define ARCHIVE_CRYPTO_SHA256_WIN 1 ++#define ARCHIVE_CRYPTO_SHA384_WIN 1 ++#define ARCHIVE_CRYPTO_SHA512_WIN 1 ++ ++#define BSDCPIO_VERSION_STRING "3.7.3" ++#define BSDTAR_VERSION_STRING "3.7.3" ++#define BSDCAT_VERSION_STRING "3.7.3" ++#define BSDUNZIP_VERSION_STRING "3.7.3" ++ ++#define HAVE_BCRYPT_H 1 ++#define HAVE_CTYPE_H 1 ++#define HAVE_DECL_INT32_MAX 1 ++#define HAVE_DECL_INT32_MIN 1 ++#define HAVE_DECL_INT64_MAX 1 ++#define HAVE_DECL_INT64_MIN 1 ++#define HAVE_DECL_INTMAX_MAX 1 ++#define HAVE_DECL_INTMAX_MIN 1 ++#define HAVE_DECL_SIZE_MAX 1 ++#define HAVE_DECL_UINT32_MAX 1 ++#define HAVE_DECL_UINT64_MAX 1 ++#define HAVE_DECL_UINTMAX_MAX 1 ++#define HAVE_DIRECT_H 1 ++#define HAVE_EILSEQ 1 ++#define HAVE_ERRNO_H 1 ++#define HAVE_FCNTL_H 1 ++#define HAVE_FSTAT 1 ++#define HAVE_GETPID 1 ++#define HAVE_INTTYPES_H 1 ++#define HAVE_IO_H 1 ++#define HAVE_LIMITS_H 1 ++#define HAVE_LOCALE_H 1 ++#define HAVE_MBRTOWC 1 ++#define HAVE_MEMMOVE 1 ++#define HAVE_MEMORY_H 1 ++#define HAVE_MKDIR 1 ++#define HAVE_PROCESS_H 1 ++#define HAVE_SETLOCALE 1 ++#define HAVE_SIGNAL_H 1 ++#define HAVE_STDARG_H 1 ++#define HAVE_STDINT_H 1 ++#define HAVE_STDLIB_H 1 ++#define HAVE_STRCHR 1 ++#define HAVE_STRNLEN 1 ++#define HAVE_STRDUP 1 ++#define HAVE_STRERROR 1 ++#define HAVE_STRFTIME 1 ++#define HAVE_STRING_H 1 ++#define HAVE_STRRCHR 1 ++#define HAVE_SYS_STAT_H 1 ++#define HAVE_SYS_TYPES_H 1 ++#define HAVE_SYS_UTIME_H 1 ++#define HAVE_TIME_H 1 ++#define HAVE_TZSET 1 ++#define HAVE_UTIME 1 ++#define HAVE_WCHAR_H 1 ++#define HAVE_WCHAR_T 1 ++#define HAVE_WCRTOMB 1 ++#define HAVE_WCSCMP 1 ++#define HAVE_WCSCPY 1 ++#define HAVE_WCSLEN 1 ++#define HAVE_WCTOMB 1 ++#define HAVE_WCTYPE_H 1 ++#define HAVE_WINCRYPT_H 1 ++#define HAVE_WINDOWS_H 1 ++#define HAVE_WINIOCTL_H 1 ++#define HAVE__CrtSetReportMode 1 ++#define HAVE_CTIME_S 1 ++#define HAVE__FSEEKI64 1 ++#define HAVE__GET_TIMEZONE 1 ++#define HAVE_GMTIME_S 1 ++#define HAVE_LOCALTIME_S 1 ++#define HAVE__MKGMTIME 1 ++#define ICONV_CONST ++#define HAVE_LZ4HC_H 1 ++ ++#define LIBARCHIVE_VERSION_NUMBER "3007003" ++#define LIBARCHIVE_VERSION_STRING "3.7.3" ++#define SIZEOF_WCHAR_T 2 ++#define VERSION "3.7.3" ++ ++#define gid_t short ++#define id_t short ++#define mode_t unsigned short ++#define pid_t int ++#define ssize_t int64_t ++#define uid_t short +diff --git a/libarchive_fe/BUILD.bazel b/libarchive_fe/BUILD.bazel +new file mode 100644 +index 00000000..8776c21c +--- /dev/null ++++ b/libarchive_fe/BUILD.bazel +@@ -0,0 +1,18 @@ ++load("@rules_cc//cc:defs.bzl", "cc_library") ++load("//bazel:config.bzl", "PLATFORM_LOCAL_DEFINES") ++ ++package(default_visibility = ["//visibility:public"]) ++ ++cc_library( ++ name = "archive_fe", ++ hdrs = glob(["*.h"]), ++ srcs = glob(["*.c"]), ++ defines = PLATFORM_LOCAL_DEFINES, ++ deps = ["//:config"], ++ strip_include_prefix = ".", ++) ++ ++alias( ++ name = "libarchive_fe", ++ actual = ":archive_fe", ++) +diff --git a/tar/BUILD.bazel b/tar/BUILD.bazel +new file mode 100644 +index 00000000..5068b0c3 +--- /dev/null ++++ b/tar/BUILD.bazel +@@ -0,0 +1,33 @@ ++load("@rules_cc//cc:defs.bzl", "cc_binary") ++ ++package(default_visibility = ["//visibility:public"]) ++ ++cc_binary( ++ name = "bsdtar", ++ srcs = [ ++ "bsdtar.c", ++ "bsdtar.h", ++ "bsdtar_platform.h", ++ "cmdline.c", ++ "creation_set.c", ++ "read.c", ++ "subst.c", ++ "util.c", ++ "write.c", ++ ] + select({ ++ "@platforms//os:windows": [ ++ "bsdtar_windows.c", ++ "bsdtar_windows.h", ++ ], ++ "//conditions:default": [], ++ }), ++ deps = [ ++ "//libarchive", ++ "//libarchive_fe", ++ ], ++) ++ ++alias( ++ name = "tar", ++ actual = ":bsdtar", ++) +diff --git a/tar/bsdtar.c b/tar/bsdtar.c +index 42baab28..95d53097 100644 +--- a/tar/bsdtar.c ++++ b/tar/bsdtar.c +@@ -1070,7 +1070,11 @@ static const char *long_help_msg = + " -c Create -r Add/Replace -t List -u Update -x Extract\n" + "Common Options:\n" + " -b # Use # 512-byte records per I/O block\n" ++#ifdef _PATH_DEFTAPE + " -f Location of archive (default " _PATH_DEFTAPE ")\n" ++#else ++ " -f Location of archive \n" ++#endif + " -v Verbose\n" + " -w Interactive\n" + "Create: %p -c [options] [ | | @ | -C ]\n" +diff --git a/test_utils/BUILD.bazel b/test_utils/BUILD.bazel +new file mode 100644 +index 00000000..16b958fc +--- /dev/null ++++ b/test_utils/BUILD.bazel +@@ -0,0 +1,24 @@ ++load("@rules_cc//cc:defs.bzl", "cc_library") ++load("//bazel:config.bzl", "PLATFORM_LOCAL_DEFINES") ++ ++package(default_visibility = ["//:__subpackages__"]) ++ ++exports_files(["test_main.c"]) ++ ++cc_library( ++ name = "test_utils", ++ strip_include_prefix = ".", ++ hdrs = ["test_utils.h"], ++ srcs = ["test_utils.c"], ++) ++ ++cc_library( ++ name = "common", ++ hdrs = ["test_common.h"], ++ defines = PLATFORM_LOCAL_DEFINES, ++ strip_include_prefix = ".", ++ deps = [ ++ ":test_utils", ++ "//libarchive:internal_hdrs", ++ ], ++) +diff --git a/test_utils/test_common.h b/test_utils/test_common.h +index 8e1ec824..cc452c8b 100644 +--- a/test_utils/test_common.h ++++ b/test_utils/test_common.h +@@ -30,7 +30,11 @@ + * The goal of this file (and the matching test.c) is to + * simplify the very repetitive test-*.c test programs. + */ +-#if defined(HAVE_CONFIG_H) ++ ++#if defined(PLATFORM_CONFIG_H) ++/* Use hand-built config.h in environments that need it. */ ++#include PLATFORM_CONFIG_H ++#elif defined(HAVE_CONFIG_H) + /* Most POSIX platforms use the 'configure' script to build config.h */ + #include "config.h" + #elif defined(__FreeBSD__) +diff --git a/unzip/BUILD.bazel b/unzip/BUILD.bazel +new file mode 100644 +index 00000000..7bde5a8f +--- /dev/null ++++ b/unzip/BUILD.bazel +@@ -0,0 +1,21 @@ ++load("@rules_cc//cc:defs.bzl", "cc_binary") ++ ++package(default_visibility = ["//visibility:public"]) ++ ++cc_binary( ++ name = "unzip", ++ srcs = [ ++ "bsdunzip.c", ++ "bsdunzip.h", ++ "bsdunzip_platform.h", ++ "cmdline.c", ++ "la_getline.c", ++ "la_queue.h", ++ ], ++ # TODO: missing fnmatch while building with bazel ++ tags = ["manual"], ++ deps = [ ++ "//libarchive", ++ "//libarchive_fe", ++ ], ++) diff --git a/modules/libarchive/3.7.4.bcr.2/presubmit.yml b/modules/libarchive/3.7.4.bcr.2/presubmit.yml new file mode 100644 index 00000000000..3c9de1e457d --- /dev/null +++ b/modules/libarchive/3.7.4.bcr.2/presubmit.yml @@ -0,0 +1,26 @@ +bcr_test_module: + module_path: "" + matrix: + platform: + - debian10 + - debian11 + - ubuntu2004 + - ubuntu2204 + - macos + - macos_arm64 + - windows + bazel: [6.x, 7.x, rolling] + build_flags: + - [--config=bcr_presubmit] + - [--config=bcr_presubmit, "--@libarchive//:use_mbedtls"] + tasks: + run_test_module: + name: Run test module + platform: ${{ platform }} + bazel: ${{ bazel }} + build_flags: ${{ build_flags }} + test_flags: ${{ build_flags }} + build_targets: + - "@libarchive//..." + test_targets: + - "@libarchive//..." diff --git a/modules/libarchive/3.7.4.bcr.2/source.json b/modules/libarchive/3.7.4.bcr.2/source.json new file mode 100644 index 00000000000..52e52fb3a00 --- /dev/null +++ b/modules/libarchive/3.7.4.bcr.2/source.json @@ -0,0 +1,10 @@ +{ + "integrity": "sha256-+Id1XENKc2pgnL0o2H3b++nWo7tbcDwiwC9q+AqAJzU=", + "strip_prefix": "libarchive-3.7.4", + "url": "https://github.com/libarchive/libarchive/releases/download/v3.7.4/libarchive-3.7.4.tar.xz", + "patch_strip": 1, + "patches": { + "build_with_bazel.patch": "sha256-/AAROymfaEnTk8XP0rLtgXijRdFqDNzCS1gf1lEtWXA=", + "archive_hmac_private.h.patch": "sha256-sqFYhvRfaGs8f/TcLp4YGV9+b+U0/ru9lY8P9UDizK8=" + } +} diff --git a/modules/libarchive/metadata.json b/modules/libarchive/metadata.json index 1661f845b0d..c40ddbe17bd 100644 --- a/modules/libarchive/metadata.json +++ b/modules/libarchive/metadata.json @@ -20,7 +20,8 @@ "3.7.2.bcr.3", "3.7.2.bcr.4", "3.7.4", - "3.7.4.bcr.1" + "3.7.4.bcr.1", + "3.7.4.bcr.2" ], "yanked_versions": {} } diff --git a/modules/magic_enum/0.9.5/MODULE.bazel b/modules/magic_enum/0.9.5/MODULE.bazel new file mode 100644 index 00000000000..9fa3fd14fc8 --- /dev/null +++ b/modules/magic_enum/0.9.5/MODULE.bazel @@ -0,0 +1,5 @@ +module( + name = "magic_enum", + version = "0.9.5", + compatibility_level = 0, +) diff --git a/modules/magic_enum/0.9.5/presubmit.yml b/modules/magic_enum/0.9.5/presubmit.yml new file mode 100644 index 00000000000..f5be9c3a204 --- /dev/null +++ b/modules/magic_enum/0.9.5/presubmit.yml @@ -0,0 +1,34 @@ +matrix: + platform: + - ubuntu2004 + - macos + - macos_arm64 + - windows + bazel: + - 6.x +tasks: + verify_targets: + name: Verify build targets + platform: ${{ platform }} + bazel: ${{ bazel }} + build_targets: + - '@magic_enum//:magic_enum' +bcr_test_module: + module_path: test + matrix: + platform: + - ubuntu2004 + - macos + - macos_arm64 + - windows + bazel: + - 6.x + tasks: + run_test_module: + name: Run test module + platform: ${{ platform }} + bazel: ${{ bazel }} + build_targets: + - //... + test_targets: + - //... diff --git a/modules/magic_enum/0.9.5/source.json b/modules/magic_enum/0.9.5/source.json new file mode 100644 index 00000000000..607dec93b37 --- /dev/null +++ b/modules/magic_enum/0.9.5/source.json @@ -0,0 +1,4 @@ +{ + "url": "https://github.com/Neargye/magic_enum/releases/download/v0.9.5/magic_enum-v0.9.5.tar.gz", + "integrity": "sha256-BpTh7xYMu2uL4vQ8ffNJKVkRy32uvdTlV62qwsGEIPk=" +} diff --git a/modules/magic_enum/metadata.json b/modules/magic_enum/metadata.json new file mode 100644 index 00000000000..938a204d0bd --- /dev/null +++ b/modules/magic_enum/metadata.json @@ -0,0 +1,17 @@ +{ + "homepage": "https://github.com/Neargye/magic_enum", + "maintainers": [ + { + "email": "ezekiel@seaube.com", + "github": "zaucy", + "name": "Ezekiel Warren" + } + ], + "repository": [ + "github:Neargye/magic_enum" + ], + "versions": [ + "0.9.5" + ], + "yanked_versions": {} +} diff --git a/modules/opentelemetry-cpp/1.14.2.bcr.1/MODULE.bazel b/modules/opentelemetry-cpp/1.14.2.bcr.1/MODULE.bazel new file mode 100644 index 00000000000..49b51f1e68d --- /dev/null +++ b/modules/opentelemetry-cpp/1.14.2.bcr.1/MODULE.bazel @@ -0,0 +1,21 @@ +module( + name = "opentelemetry-cpp", + version = "1.14.2.bcr.1", + compatibility_level = 0, + repo_name = "io_opentelemetry_cpp", +) + +bazel_dep(name = "abseil-cpp", version = "20230802.0.bcr.1", repo_name = "com_google_absl") +bazel_dep(name = "bazel_skylib", version = "1.5.0") +bazel_dep(name = "curl", version = "8.4.0") +bazel_dep(name = "grpc", version = "1.56.3.bcr.1", repo_name = "com_github_grpc_grpc") +bazel_dep(name = "nlohmann_json", version = "3.11.3", repo_name = "github_nlohmann_json") +bazel_dep(name = "opentelemetry-proto", version = "1.1.0", repo_name = "com_github_opentelemetry_proto") +bazel_dep(name = "opentracing-cpp", version = "1.6.0", repo_name = "com_github_opentracing") +bazel_dep(name = "platforms", version = "0.0.8") +bazel_dep(name = "prometheus-cpp", version = "1.2.4", repo_name = "com_github_jupp0r_prometheus_cpp") +bazel_dep(name = "protobuf", version = "23.1", repo_name = "com_google_protobuf") +bazel_dep(name = "rules_proto", version = "5.3.0-21.7") + +bazel_dep(name = "google_benchmark", version = "1.8.3", dev_dependency = True, repo_name = "com_github_google_benchmark") +bazel_dep(name = "googletest", version = "1.14.0.bcr.1", dev_dependency = True, repo_name = "com_google_googletest") diff --git a/modules/opentelemetry-cpp/1.14.2.bcr.1/patches/0001-Add-MODULE.bazel.patch b/modules/opentelemetry-cpp/1.14.2.bcr.1/patches/0001-Add-MODULE.bazel.patch new file mode 100644 index 00000000000..323cea4313c --- /dev/null +++ b/modules/opentelemetry-cpp/1.14.2.bcr.1/patches/0001-Add-MODULE.bazel.patch @@ -0,0 +1,24 @@ +--- /dev/null ++++ b/MODULE.bazel +@@ -0,0 +1,21 @@ ++module( ++ name = "opentelemetry-cpp", ++ version = "1.14.2.bcr.1", ++ compatibility_level = 0, ++ repo_name = "io_opentelemetry_cpp", ++) ++ ++bazel_dep(name = "abseil-cpp", version = "20230802.0.bcr.1", repo_name = "com_google_absl") ++bazel_dep(name = "bazel_skylib", version = "1.5.0") ++bazel_dep(name = "curl", version = "8.4.0") ++bazel_dep(name = "grpc", version = "1.56.3.bcr.1", repo_name = "com_github_grpc_grpc") ++bazel_dep(name = "nlohmann_json", version = "3.11.3", repo_name = "github_nlohmann_json") ++bazel_dep(name = "opentelemetry-proto", version = "1.1.0", repo_name = "com_github_opentelemetry_proto") ++bazel_dep(name = "opentracing-cpp", version = "1.6.0", repo_name = "com_github_opentracing") ++bazel_dep(name = "platforms", version = "0.0.8") ++bazel_dep(name = "prometheus-cpp", version = "1.2.4", repo_name = "com_github_jupp0r_prometheus_cpp") ++bazel_dep(name = "protobuf", version = "23.1", repo_name = "com_google_protobuf") ++bazel_dep(name = "rules_proto", version = "5.3.0-21.7") ++ ++bazel_dep(name = "google_benchmark", version = "1.8.3", dev_dependency = True, repo_name = "com_github_google_benchmark") ++bazel_dep(name = "googletest", version = "1.14.0.bcr.1", dev_dependency = True, repo_name = "com_google_googletest") diff --git a/modules/opentelemetry-cpp/1.14.2.bcr.1/presubmit.yml b/modules/opentelemetry-cpp/1.14.2.bcr.1/presubmit.yml new file mode 100644 index 00000000000..7ac611a0cb7 --- /dev/null +++ b/modules/opentelemetry-cpp/1.14.2.bcr.1/presubmit.yml @@ -0,0 +1,13 @@ +matrix: + platform: ["debian10", "macos", "ubuntu2004", "windows"] + bazel: ["6.x", "7.x"] +tasks: + verify_targets: + platform: ${{ platform }} + bazel: ${{ bazel }} + build_flags: + - '--cxxopt=-std=c++14' + - '--host_cxxopt=-std=c++14' + - '--@opentelemetry-cpp//api:with_abseil=true' + build_targets: + - '@opentelemetry-cpp//api' diff --git a/modules/opentelemetry-cpp/1.14.2.bcr.1/source.json b/modules/opentelemetry-cpp/1.14.2.bcr.1/source.json new file mode 100644 index 00000000000..55f26bb40db --- /dev/null +++ b/modules/opentelemetry-cpp/1.14.2.bcr.1/source.json @@ -0,0 +1,9 @@ +{ + "integrity": "sha256-x+eAHJ9iKHUc253Uck0PBHd+1T9STIgo5zv0yfiU4L0=", + "strip_prefix": "opentelemetry-cpp-1.14.2", + "url": "https://github.com/open-telemetry/opentelemetry-cpp/archive/refs/tags/v1.14.2.tar.gz", + "patch_strip": 1, + "patches": { + "0001-Add-MODULE.bazel.patch": "sha256-URD4W7cT7CkyghBZOt+SM70775L0u+WUCTkvySXS5Ho=" + } +} diff --git a/modules/opentelemetry-cpp/metadata.json b/modules/opentelemetry-cpp/metadata.json index ecb05643779..6b5ee3ddb61 100644 --- a/modules/opentelemetry-cpp/metadata.json +++ b/modules/opentelemetry-cpp/metadata.json @@ -1,17 +1,18 @@ { - "homepage": "https://github.com/open-telemetry/opentelemetry-cpp", - "maintainers": [ + "homepage": "https://github.com/open-telemetry/opentelemetry-cpp", + "maintainers": [ { "email": "keithbsmiley@gmail.com", "github": "keith", "name": "Keith Smiley" } - ], - "repository": [ - "github:open-telemetry/opentelemetry-cpp" - ], - "versions": [ - "1.14.2" - ], - "yanked_versions": {} + ], + "repository": [ + "github:open-telemetry/opentelemetry-cpp" + ], + "versions": [ + "1.14.2", + "1.14.2.bcr.1" + ], + "yanked_versions": {} } diff --git a/modules/pico-sdk/1.6.0-rc1/MODULE.bazel b/modules/pico-sdk/1.6.0-rc1/MODULE.bazel new file mode 100644 index 00000000000..6c2b70542b8 --- /dev/null +++ b/modules/pico-sdk/1.6.0-rc1/MODULE.bazel @@ -0,0 +1,102 @@ +module(name = "pico-sdk", version = "1.6.0-rc1") + +bazel_dep(name = "platforms", version = "0.0.8") + +bazel_dep(name = "bazel_skylib", version = "1.6.1") + +bazel_dep(name = "rules_python", version = "0.22.1") + +# Note: rules_cc is special-cased repository; a dependency on rules_cc in a +# module will not ensure that the root Bazel module has that same version of +# rules_cc. For that reason, this primarily acts as a FYI. You'll still need +# to explicitly list this dependency in your own project's MODULE.bazel file. +bazel_dep(name = "rules_cc", version = "0.0.9") + +# rules_cc v0.0.10 is not yet cut, so manually pull in the desired version. +# This does not apply to dependent projects, so it needs to be copied to your +# project's MODULE.bazel too. +archive_override( + module_name = "rules_cc", + urls = "https://github.com/bazelbuild/rules_cc/archive/1acf5213b6170f1f0133e273cb85ede0e732048f.zip", + strip_prefix = "rules_cc-1acf5213b6170f1f0133e273cb85ede0e732048f", + integrity = "sha256-NddP6xi6LzsIHT8bMSVJ2NtoURbN+l3xpjvmIgB6aSg=", +) + +http_archive = use_repo_rule("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive") + +http_archive( + name = "arm_gcc_linux-x86_64", + url = "https://developer.arm.com/-/media/Files/downloads/gnu/13.2.rel1/binrel/arm-gnu-toolchain-13.2.rel1-x86_64-arm-none-eabi.tar.xz", + strip_prefix = "arm-gnu-toolchain-13.2.Rel1-x86_64-arm-none-eabi", + build_file = "//bazel/toolchain:gcc_arm_none_eabi.BUILD", + sha256 = "6cd1bbc1d9ae57312bcd169ae283153a9572bd6a8e4eeae2fedfbc33b115fdbb", +) + +http_archive( + name = "arm_gcc_win-x86_64", + url = "https://developer.arm.com/-/media/Files/downloads/gnu/13.2.rel1/binrel/arm-gnu-toolchain-13.2.rel1-mingw-w64-i686-arm-none-eabi.zip", + strip_prefix = "arm-gnu-toolchain-13.2.Rel1-mingw-w64-i686-arm-none-eabi", + build_file = "//bazel/toolchain:gcc_arm_none_eabi.BUILD", + sha256 = "51d933f00578aa28016c5e3c84f94403274ea7915539f8e56c13e2196437d18f", +) + +http_archive( + name = "arm_gcc_mac-x86_64", + url = "https://developer.arm.com/-/media/Files/downloads/gnu/13.2.rel1/binrel/arm-gnu-toolchain-13.2.rel1-darwin-x86_64-arm-none-eabi.tar.xz", + strip_prefix = "arm-gnu-toolchain-13.2.Rel1-darwin-x86_64-arm-none-eabi", + build_file = "//bazel/toolchain:gcc_arm_none_eabi.BUILD", + sha256 = "075faa4f3e8eb45e59144858202351a28706f54a6ec17eedd88c9fb9412372cc", +) + +http_archive( + name = "arm_gcc_mac-aarch64", + url = "https://developer.arm.com/-/media/Files/downloads/gnu/13.2.rel1/binrel/arm-gnu-toolchain-13.2.rel1-darwin-arm64-arm-none-eabi.tar.xz", + strip_prefix = "arm-gnu-toolchain-13.2.Rel1-darwin-arm64-arm-none-eabi", + build_file = "//bazel/toolchain:gcc_arm_none_eabi.BUILD", + sha256 = "39c44f8af42695b7b871df42e346c09fee670ea8dfc11f17083e296ea2b0d279", +) + +# TODO: Provide tinyusb as a proper Bazel module. +http_archive( + name = "tinyusb", + url = "https://github.com/hathach/tinyusb/archive/86c416d4c0fb38432460b3e11b08b9de76941bf5.zip", + strip_prefix = "tinyusb-86c416d4c0fb38432460b3e11b08b9de76941bf5", + build_file = "//src/rp2_common/tinyusb:tinyusb.BUILD", + sha256 = "ac57109bba00d26ffa33312d5f334990ec9a9a4d82bf890ed8b825b4610d1da2", +) + +# TODO: Provide btstack as a proper Bazel module. +http_archive( + name = "btstack", + url = "https://github.com/bluekitchen/btstack/archive/72ef1732c954d938091467961e41f4aa9b976b34.zip", + strip_prefix = "btstack-72ef1732c954d938091467961e41f4aa9b976b34", + build_file = "//src/rp2_common/pico_btstack:btstack.BUILD", + sha256 = "f45d72b5d404dd2f8e311287de6f2ba3561fc8ae956737eeb611b277aadc2391", +) + +# TODO: Provide btstack as a proper Bazel module. +http_archive( + name = "cyw43-driver", + url = "https://github.com/georgerobotics/cyw43-driver/archive/8ef38a6d32c54f850bff8f189bdca19ded33792a.zip", + strip_prefix = "cyw43-driver-8ef38a6d32c54f850bff8f189bdca19ded33792a", + build_file = "//src/rp2_common/pico_cyw43_driver:cyw43-driver.BUILD", + sha256 = "0b44a19ea58537ee954357606cde5ed20c3a42be77adfebb07b7c0e4740f6228", +) + +# TODO: Provide lwip as a proper Bazel module. +http_archive( + name = "lwip", + url = "https://github.com/lwip-tcpip/lwip/archive/239918ccc173cb2c2a62f41a40fd893f57faf1d6.zip", + strip_prefix = "lwip-239918ccc173cb2c2a62f41a40fd893f57faf1d6", + build_file = "//src/rp2_common/pico_lwip:lwip.BUILD", + sha256 = "7ee9e02f2719c0422377e1fcce5a21716ca2e2e855cca56695f9ef7cb020e5dd", +) + +register_toolchains( + "//bazel/toolchain:arm_gcc_linux-x86_64", + "//bazel/toolchain:arm_gcc_win-x86_64", + "//bazel/toolchain:arm_gcc_mac-x86_64", + "//bazel/toolchain:arm_gcc_mac-aarch64", + # Require users to opt-in to the Pico SDK's toolchains. + dev_dependency = True, +) diff --git a/modules/pico-sdk/1.6.0-rc1/patches/0001-Minimal-fixes-for-BCR.patch b/modules/pico-sdk/1.6.0-rc1/patches/0001-Minimal-fixes-for-BCR.patch new file mode 100644 index 00000000000..453e84961b7 --- /dev/null +++ b/modules/pico-sdk/1.6.0-rc1/patches/0001-Minimal-fixes-for-BCR.patch @@ -0,0 +1,20 @@ +diff --git a/MODULE.bazel b/MODULE.bazel +index 883fad7..6c2b705 100644 +--- a/MODULE.bazel ++++ b/MODULE.bazel +@@ -4,6 +4,8 @@ bazel_dep(name = "platforms", version = "0.0.8") + + bazel_dep(name = "bazel_skylib", version = "1.6.1") + ++bazel_dep(name = "rules_python", version = "0.22.1") ++ + # Note: rules_cc is special-cased repository; a dependency on rules_cc in a + # module will not ensure that the root Bazel module has that same version of + # rules_cc. For that reason, this primarily acts as a FYI. You'll still need +@@ -95,4 +97,6 @@ register_toolchains( + "//bazel/toolchain:arm_gcc_win-x86_64", + "//bazel/toolchain:arm_gcc_mac-x86_64", + "//bazel/toolchain:arm_gcc_mac-aarch64", ++ # Require users to opt-in to the Pico SDK's toolchains. ++ dev_dependency = True, + ) diff --git a/modules/pico-sdk/1.6.0-rc1/patches/0002-Add-Bazel-example-for-BCR.patch b/modules/pico-sdk/1.6.0-rc1/patches/0002-Add-Bazel-example-for-BCR.patch new file mode 100644 index 00000000000..25be21eafa2 --- /dev/null +++ b/modules/pico-sdk/1.6.0-rc1/patches/0002-Add-Bazel-example-for-BCR.patch @@ -0,0 +1,74 @@ +diff --git a/bazel/example/.bazelrc b/bazel/example/.bazelrc +new file mode 100644 +index 0000000..d30eca5 +--- /dev/null ++++ b/bazel/example/.bazelrc +@@ -0,0 +1 @@ ++build --@rules_cc//cc/toolchains:experimental_enable_rule_based_toolchains +diff --git a/bazel/example/BUILD.bazel b/bazel/example/BUILD.bazel +new file mode 100644 +index 0000000..1457241 +--- /dev/null ++++ b/bazel/example/BUILD.bazel +@@ -0,0 +1,5 @@ ++cc_binary( ++ name = "hello_world", ++ srcs = ["hello_world.c"], ++ deps = ["@pico-sdk//src/common/pico_stdlib:pico_stdlib"], ++) +diff --git a/bazel/example/MODULE.bazel b/bazel/example/MODULE.bazel +new file mode 100644 +index 0000000..d50c4bd +--- /dev/null ++++ b/bazel/example/MODULE.bazel +@@ -0,0 +1,28 @@ ++bazel_dep(name = "pico-sdk", version = "1.6.0-rc1") ++ ++# DO NOT copy this line to your project, this is just to make it so this example ++# can reference the rest of the repository. ++local_path_override(module_name = "pico-sdk", path = "../..") ++ ++# Note: rules_cc is special-cased repository; a dependency on rules_cc in a ++# module will not ensure that the root Bazel module has that same version of ++# rules_cc. For that reason, this primarily acts as a FYI. You'll still need ++# to explicitly list this dependency in your own project's MODULE.bazel file. ++bazel_dep(name = "rules_cc", version = "0.0.9") ++ ++# rules_cc v0.0.10 is not yet cut, so manually pull in the desired version. ++# This does not apply to dependent projects, so it needs to be copied to your ++# project's MODULE.bazel too. ++archive_override( ++ module_name = "rules_cc", ++ urls = "https://github.com/bazelbuild/rules_cc/archive/1acf5213b6170f1f0133e273cb85ede0e732048f.zip", ++ strip_prefix = "rules_cc-1acf5213b6170f1f0133e273cb85ede0e732048f", ++ integrity = "sha256-NddP6xi6LzsIHT8bMSVJ2NtoURbN+l3xpjvmIgB6aSg=", ++) ++ ++register_toolchains( ++ "@pico-sdk//bazel/toolchain:arm_gcc_linux-x86_64", ++ "@pico-sdk//bazel/toolchain:arm_gcc_win-x86_64", ++ "@pico-sdk//bazel/toolchain:arm_gcc_mac-x86_64", ++ "@pico-sdk//bazel/toolchain:arm_gcc_mac-aarch64", ++) +diff --git a/bazel/example/hello_world.c b/bazel/example/hello_world.c +new file mode 100644 +index 0000000..cf3dfd2 +--- /dev/null ++++ b/bazel/example/hello_world.c +@@ -0,0 +1,16 @@ ++/** ++ * Copyright (c) 2024 Raspberry Pi (Trading) Ltd. ++ * ++ * SPDX-License-Identifier: BSD-3-Clause ++ */ ++ ++#include ++#include "pico/stdlib.h" ++ ++int main() { ++ stdio_init_all(); ++ while (true) { ++ printf("Hello, world!\n"); ++ sleep_ms(1000); ++ } ++} diff --git a/modules/pico-sdk/1.6.0-rc1/patches/0003-Pioasm-MSVC-workaround.patch b/modules/pico-sdk/1.6.0-rc1/patches/0003-Pioasm-MSVC-workaround.patch new file mode 100644 index 00000000000..35b1c499b2f --- /dev/null +++ b/modules/pico-sdk/1.6.0-rc1/patches/0003-Pioasm-MSVC-workaround.patch @@ -0,0 +1,17 @@ +diff --git a/tools/pioasm/BUILD.bazel b/tools/pioasm/BUILD.bazel +index c9fd601..c9a252e 100644 +--- a/tools/pioasm/BUILD.bazel ++++ b/tools/pioasm/BUILD.bazel +@@ -4,6 +4,12 @@ package(default_visibility = ["//visibility:public"]) + + cc_library( + name = "pioasm_core", ++ # TODO: Only required for MSVC, but this will apply whenever Windows is ++ # targeted. ++ defines = select({ ++ "@platforms//os:windows": ["YY_NO_UNISTD_H=1"], ++ "//conditions:default": [], ++ }), + srcs = [ + "gen/lexer.cpp", + "gen/location.h", diff --git a/modules/pico-sdk/1.6.0-rc1/presubmit.yml b/modules/pico-sdk/1.6.0-rc1/presubmit.yml new file mode 100644 index 00000000000..d45bab2714d --- /dev/null +++ b/modules/pico-sdk/1.6.0-rc1/presubmit.yml @@ -0,0 +1,14 @@ +bcr_test_module: + module_path: bazel/example + matrix: + platform: ["debian10", "ubuntu2004", "macos", "macos_arm64", "windows"] + tasks: + run_test_module_build: + name: "Build test" + platform: ${{ platform }} + bazel: "7.x" + build_flags: + - "--platforms=@pico-sdk//bazel/platform:rp2040" + build_targets: + - "//:hello_world" + - "@pico-sdk//..." diff --git a/modules/pico-sdk/1.6.0-rc1/source.json b/modules/pico-sdk/1.6.0-rc1/source.json new file mode 100644 index 00000000000..ac8ef037903 --- /dev/null +++ b/modules/pico-sdk/1.6.0-rc1/source.json @@ -0,0 +1,11 @@ +{ + "integrity": "sha256-7coOEe7V7Y11X+n4qkAIPsR+OjB7Bibc9Ofxwb9ZSpA=", + "strip_prefix": "pico-sdk-6ff3e4fab27441de19fd53c0eb5aacbe83a18221", + "url": "https://github.com/raspberrypi/pico-sdk/archive/6ff3e4fab27441de19fd53c0eb5aacbe83a18221.tar.gz", + "patch_strip": 1, + "patches": { + "0001-Minimal-fixes-for-BCR.patch": "sha256-e9F+Avyz5U89+12sJxJ6PqytGw87UlGrBGI6W5SGLqw=", + "0002-Add-Bazel-example-for-BCR.patch": "sha256-tEUaoqOZrv9JsAycO9FQq9xHfbwqTvPCEqUt5XIYrwU=", + "0003-Pioasm-MSVC-workaround.patch": "sha256-fHBGTRUHYlKv01ajgdWjCkZChS8piVXICuZFFFUUE7I=" + } +} diff --git a/modules/pico-sdk/metadata.json b/modules/pico-sdk/metadata.json new file mode 100644 index 00000000000..642a71b754a --- /dev/null +++ b/modules/pico-sdk/metadata.json @@ -0,0 +1,28 @@ +{ + "homepage": "https://www.raspberrypi.com/documentation/pico-sdk/", + "maintainers": [ + { + "github": "armandomontanez", + "name": "Armando Montanez" + }, + { + "github": "kilograham", + "name": "Graham Sanderson" + }, + { + "github": "tpudlik", + "name": "Ted Pudlik" + }, + { + "email": "pigweed-team@googlegroups.com", + "name": "The Pigweed Team" + } + ], + "repository": [ + "github:raspberrypi/pico-sdk" + ], + "versions": [ + "1.6.0-rc1" + ], + "yanked_versions": {} +} diff --git a/modules/rules_go/0.48.1/MODULE.bazel b/modules/rules_go/0.48.1/MODULE.bazel new file mode 100644 index 00000000000..252fd1f35b9 --- /dev/null +++ b/modules/rules_go/0.48.1/MODULE.bazel @@ -0,0 +1,46 @@ +module( + name = "rules_go", + version = "0.48.1", + compatibility_level = 0, + repo_name = "io_bazel_rules_go", +) + +# The custom repo_name is used to prevent our bazel_features polyfill for WORKSPACE builds from +# conflicting with the real bazel_features repo. +bazel_dep(name = "bazel_features", version = "1.9.1", repo_name = "io_bazel_rules_go_bazel_features") +bazel_dep(name = "bazel_skylib", version = "1.2.0") +bazel_dep(name = "platforms", version = "0.0.4") +bazel_dep(name = "rules_proto", version = "6.0.0") +bazel_dep(name = "protobuf", version = "3.19.2", repo_name = "com_google_protobuf") + +go_sdk = use_extension("//go:extensions.bzl", "go_sdk") +go_sdk.download( + name = "go_default_sdk", + version = "1.21.8", +) +use_repo( + go_sdk, + "go_toolchains", + # This name is ugly on purpose to avoid a conflict with a user-named SDK. + "io_bazel_rules_nogo", +) +register_toolchains("@go_toolchains//:all") + +bazel_dep(name = "gazelle", version = "0.36.0") + +go_deps = use_extension("@gazelle//:extensions.bzl", "go_deps") +go_deps.from_file(go_mod = "//:go.mod") +use_repo( + go_deps, + "com_github_gogo_protobuf", + "com_github_golang_mock", + "com_github_golang_protobuf", + "org_golang_google_genproto", + "org_golang_google_grpc", + "org_golang_google_grpc_cmd_protoc_gen_go_grpc", + "org_golang_google_protobuf", + "org_golang_x_net", + "org_golang_x_tools", + # Exported by gazelle specifically for rules_go. + "bazel_gazelle_go_repository_config", +) diff --git a/modules/rules_go/0.48.1/presubmit.yml b/modules/rules_go/0.48.1/presubmit.yml new file mode 100644 index 00000000000..078639a1917 --- /dev/null +++ b/modules/rules_go/0.48.1/presubmit.yml @@ -0,0 +1,35 @@ +matrix: + platform: + - debian10 + - ubuntu2004 + - macos + - macos_arm64 + - windows + bazel: [6.x, 7.x] +tasks: + verify_targets: + name: Verify build targets + platform: ${{ platform }} + bazel: ${{ bazel }} + build_targets: + - '@rules_go//go/tools/bzltestutil/...' +bcr_test_module: + module_path: tests/bcr + matrix: + platform: + - debian10 + - ubuntu2004 + - macos + - macos_arm64 + - windows + bazel: [6.x, 7.x] + tasks: + run_test_module: + name: Run test module + platform: ${{ platform }} + bazel: ${{ bazel }} + build_targets: + - //... + - '@go_default_sdk//...' + test_targets: + - //... diff --git a/modules/rules_go/0.48.1/source.json b/modules/rules_go/0.48.1/source.json new file mode 100644 index 00000000000..cd0cfcf32c0 --- /dev/null +++ b/modules/rules_go/0.48.1/source.json @@ -0,0 +1,5 @@ +{ + "integrity": "sha256-sgOOLeLKzhjwMiSctLsASKv1g6NjafqY9oevGz+ICyY=", + "strip_prefix": "", + "url": "https://github.com/bazelbuild/rules_go/releases/download/v0.48.1/rules_go-v0.48.1.zip" +} diff --git a/modules/rules_go/metadata.json b/modules/rules_go/metadata.json index 68f6dffe251..e0196791516 100644 --- a/modules/rules_go/metadata.json +++ b/modules/rules_go/metadata.json @@ -42,7 +42,8 @@ "0.46.0", "0.47.0", "0.47.1", - "0.48.0" + "0.48.0", + "0.48.1" ], "yanked_versions": { "0.33.0": "Obsolete experimental version that emits debug prints. Update to 0.39.1 or higher", diff --git a/modules/rules_helm/0.5.0/MODULE.bazel b/modules/rules_helm/0.5.0/MODULE.bazel new file mode 100644 index 00000000000..534e96585e4 --- /dev/null +++ b/modules/rules_helm/0.5.0/MODULE.bazel @@ -0,0 +1,42 @@ +"""abrisco/rules_helm""" + +module( + name = "rules_helm", + version = "0.5.0", + compatibility_level = 1, +) + +bazel_dep(name = "platforms", version = "0.0.7") +bazel_dep(name = "bazel_skylib", version = "1.5.0") +bazel_dep(name = "stardoc", version = "0.6.2", repo_name = "io_bazel_stardoc") +bazel_dep(name = "rules_go", version = "0.45.1", repo_name = "io_bazel_rules_go") +bazel_dep(name = "rules_oci", version = "1.7.2") + +# This is unfortunately required by `rules_oci`. +# https://github.com/bazel-contrib/rules_oci/issues/575 +bazel_dep(name = "aspect_bazel_lib", version = "1.36.0") + +go_sdk = use_extension("@io_bazel_rules_go//go:extensions.bzl", "go_sdk") +go_sdk.download(version = "1.18.10") + +helm = use_extension("@rules_helm//helm:extensions.bzl", "helm") +helm.options() +use_repo( + helm, + "helm", + "helm_darwin_amd64_toolchain", + "helm_darwin_arm64_toolchain", + "helm_linux_amd64_toolchain", + "helm_linux_arm64_toolchain", + "helm_windows_amd64_toolchain", +) +use_repo(helm, "go_yaml_yaml") +use_repo(helm, "helm_test_deps__with_chart_deps", "rules_helm_test_container_base") + +register_toolchains( + "@helm_darwin_amd64_toolchain//:toolchain", + "@helm_darwin_arm64_toolchain//:toolchain", + "@helm_linux_amd64_toolchain//:toolchain", + "@helm_linux_arm64_toolchain//:toolchain", + "@helm_windows_amd64_toolchain//:toolchain", +) diff --git a/modules/rules_helm/0.5.0/presubmit.yml b/modules/rules_helm/0.5.0/presubmit.yml new file mode 100644 index 00000000000..3266c6ab15a --- /dev/null +++ b/modules/rules_helm/0.5.0/presubmit.yml @@ -0,0 +1,21 @@ +--- +bcr_test_module: + # TODO(abrisco/rules_helm#38): Have this run in a regression test + # directory which is consuming rules_helm and not just testing + # within the same repository. + module_path: "." + matrix: + platform: ["macos", "ubuntu2004", "windows"] + bazel: ["6.x", "7.x"] + tasks: + run_tests: + name: "Run test module" + platform: ${{ platform }} + bazel: ${{ bazel }} + build_flags: + - "--config=strict" + test_targets: + - "--" + - "//..." + # Docs test renders differently in bcr CI, don't test this. + - "-//docs:docs_diff_test" diff --git a/modules/rules_helm/0.5.0/source.json b/modules/rules_helm/0.5.0/source.json new file mode 100644 index 00000000000..98dbdf14754 --- /dev/null +++ b/modules/rules_helm/0.5.0/source.json @@ -0,0 +1,5 @@ +{ + "integrity": "sha256-rGyy5jLKTchuIK60AzJTc0bQegIxMnKEkE+Ot6wYTl8=", + "strip_prefix": "", + "url": "https://github.com/abrisco/rules_helm/releases/download/0.5.0/rules_helm-v0.5.0.tar.gz" +} diff --git a/modules/rules_helm/metadata.json b/modules/rules_helm/metadata.json index f55e9cd0af6..78ccbd455b2 100644 --- a/modules/rules_helm/metadata.json +++ b/modules/rules_helm/metadata.json @@ -16,7 +16,8 @@ "0.3.0", "0.3.1", "0.3.2", - "0.4.0" + "0.4.0", + "0.5.0" ], "yanked_versions": {} } diff --git a/modules/rules_ios/4.7.0/MODULE.bazel b/modules/rules_ios/4.7.0/MODULE.bazel new file mode 100644 index 00000000000..4328a5051e5 --- /dev/null +++ b/modules/rules_ios/4.7.0/MODULE.bazel @@ -0,0 +1,103 @@ +""" +Defines all the external repositories and dependencies for rules_ios. +""" + +# Defines the rules_ios bzlmod module. +# Version is updated during release to the registry. +module( + name = "rules_ios", + version = "4.7.0", + bazel_compatibility = [ + ">=6.0.0", + ], + compatibility_level = 1, + repo_name = "build_bazel_rules_ios", +) + +# Declare the bzlmod dependencies needed by rules_ios and users of rules_ios +bazel_dep( + name = "apple_support", + version = "1.15.1", + repo_name = "build_bazel_apple_support", +) +bazel_dep( + name = "rules_apple", + version = "3.5.1", + repo_name = "build_bazel_rules_apple", +) +bazel_dep( + name = "rules_cc", + version = "0.0.6", +) +bazel_dep( + name = "rules_swift", + version = "1.18.0", + repo_name = "build_bazel_rules_swift", +) +bazel_dep( + name = "bazel_skylib", + version = "1.4.2", +) + +# Declare the development dependencies needed for rules_ios development +bazel_dep( + name = "buildifier_prebuilt", + version = "6.1.0", + dev_dependency = True, +) +bazel_dep( + name = "rules_pkg", + version = "0.9.1", + dev_dependency = True, +) +bazel_dep( + name = "stardoc", + version = "0.6.2", + dev_dependency = True, + repo_name = "io_bazel_stardoc", +) + +# Load non-bzlmod dependencies from rules_ios +non_module_deps = use_extension("//rules:module_extensions.bzl", "non_module_deps") +use_repo( + non_module_deps, + "arm64-to-sim", + "com_github_yonaskolb_xcodegen", + "tart", +) + +non_module_dev_deps = use_extension( + "//rules:module_extensions.bzl", + "non_module_dev_deps", + dev_dependency = True, +) +use_repo( + non_module_dev_deps, + "com_github_apple_swiftcollections", +) + +# Configure Xcode +xcode_configure = use_extension( + "//rules:module_extensions.bzl", + "xcode_configure", + dev_dependency = True, +) +xcode_configure.configure( + remote_xcode_label = "", + xcode_locator_label = "//tools/toolchains/xcode_configure:xcode_locator.m", +) + +# Load non-bzlmod dependencies used in this repo from rules_swift +swift_non_module_deps = use_extension("@build_bazel_rules_swift//swift:extensions.bzl", "non_module_deps") +use_repo( + swift_non_module_deps, + "build_bazel_rules_swift_index_import", + "build_bazel_rules_swift_local_config", +) + +# Load non-bzlmod dependencies used in this repo from rules_apple +apple_non_module_deps = use_extension("@build_bazel_rules_apple//apple:extensions.bzl", "non_module_deps") +use_repo( + apple_non_module_deps, + "xctestrunner", +) diff --git a/modules/rules_ios/4.7.0/patches/module_dot_bazel_version.patch b/modules/rules_ios/4.7.0/patches/module_dot_bazel_version.patch new file mode 100644 index 00000000000..8c98674db83 --- /dev/null +++ b/modules/rules_ios/4.7.0/patches/module_dot_bazel_version.patch @@ -0,0 +1,14 @@ +=================================================================== +--- a/MODULE.bazel ++++ b/MODULE.bazel +@@ -5,9 +5,9 @@ + # Defines the rules_ios bzlmod module. + # Version is updated during release to the registry. + module( + name = "rules_ios", +- version = "0", ++ version = "4.7.0", + bazel_compatibility = [ + ">=6.0.0", + ], + compatibility_level = 1, diff --git a/modules/rules_ios/4.7.0/presubmit.yml b/modules/rules_ios/4.7.0/presubmit.yml new file mode 100644 index 00000000000..13feb413e34 --- /dev/null +++ b/modules/rules_ios/4.7.0/presubmit.yml @@ -0,0 +1,17 @@ +matrix: + bazel: ["6.x", "7.x"] +tasks: + verify_build_targets_bazel_6: + name: Verify Build targets on macOS with Bazel 6 + platform: macos_arm64 + bazel: 6.x + build_targets: + - "@rules_ios//rules/..." + verify_build_targets_bazel_7: + name: Verify Build targets on macOS with Bazel 7 + platform: macos_arm64 + bazel: 7.x + build_targets: + - "@rules_ios//rules/..." + build_flags: + - "--repo_env=BAZEL_DO_NOT_DETECT_CPP_TOOLCHAIN=1" diff --git a/modules/rules_ios/4.7.0/source.json b/modules/rules_ios/4.7.0/source.json new file mode 100644 index 00000000000..58d385e5e57 --- /dev/null +++ b/modules/rules_ios/4.7.0/source.json @@ -0,0 +1,9 @@ +{ + "integrity": "sha256-V7wnuxyr0CIUS5LwNH5IpWBV6yfNVvHjj6D1Fnqyx40=", + "strip_prefix": "", + "url": "https://github.com/bazel-ios/rules_ios/releases/download/4.7.0/rules_ios.4.7.0.tar.gz", + "patches": { + "module_dot_bazel_version.patch": "sha256-GhBi5O4k1N+XbxJciVCu3jahHQj3AAqS2CE2blI2yoE=" + }, + "patch_strip": 1 +} diff --git a/modules/rules_ios/4.7.1/MODULE.bazel b/modules/rules_ios/4.7.1/MODULE.bazel new file mode 100644 index 00000000000..07e8fbf5acd --- /dev/null +++ b/modules/rules_ios/4.7.1/MODULE.bazel @@ -0,0 +1,103 @@ +""" +Defines all the external repositories and dependencies for rules_ios. +""" + +# Defines the rules_ios bzlmod module. +# Version is updated during release to the registry. +module( + name = "rules_ios", + version = "4.7.1", + bazel_compatibility = [ + ">=6.0.0", + ], + compatibility_level = 1, + repo_name = "build_bazel_rules_ios", +) + +# Declare the bzlmod dependencies needed by rules_ios and users of rules_ios +bazel_dep( + name = "apple_support", + version = "1.15.1", + repo_name = "build_bazel_apple_support", +) +bazel_dep( + name = "rules_apple", + version = "3.5.1", + repo_name = "build_bazel_rules_apple", +) +bazel_dep( + name = "rules_cc", + version = "0.0.6", +) +bazel_dep( + name = "rules_swift", + version = "1.18.0", + repo_name = "build_bazel_rules_swift", +) +bazel_dep( + name = "bazel_skylib", + version = "1.4.2", +) + +# Declare the development dependencies needed for rules_ios development +bazel_dep( + name = "buildifier_prebuilt", + version = "6.1.0", + dev_dependency = True, +) +bazel_dep( + name = "rules_pkg", + version = "0.9.1", + dev_dependency = True, +) +bazel_dep( + name = "stardoc", + version = "0.6.2", + dev_dependency = True, + repo_name = "io_bazel_stardoc", +) + +# Load non-bzlmod dependencies from rules_ios +non_module_deps = use_extension("//rules:module_extensions.bzl", "non_module_deps") +use_repo( + non_module_deps, + "arm64-to-sim", + "com_github_yonaskolb_xcodegen", + "tart", +) + +non_module_dev_deps = use_extension( + "//rules:module_extensions.bzl", + "non_module_dev_deps", + dev_dependency = True, +) +use_repo( + non_module_dev_deps, + "com_github_apple_swiftcollections", +) + +# Configure Xcode +xcode_configure = use_extension( + "//rules:module_extensions.bzl", + "xcode_configure", + dev_dependency = True, +) +xcode_configure.configure( + remote_xcode_label = "", + xcode_locator_label = "//tools/toolchains/xcode_configure:xcode_locator.m", +) + +# Load non-bzlmod dependencies used in this repo from rules_swift +swift_non_module_deps = use_extension("@build_bazel_rules_swift//swift:extensions.bzl", "non_module_deps") +use_repo( + swift_non_module_deps, + "build_bazel_rules_swift_index_import", + "build_bazel_rules_swift_local_config", +) + +# Load non-bzlmod dependencies used in this repo from rules_apple +apple_non_module_deps = use_extension("@build_bazel_rules_apple//apple:extensions.bzl", "non_module_deps") +use_repo( + apple_non_module_deps, + "xctestrunner", +) diff --git a/modules/rules_ios/4.7.1/patches/module_dot_bazel_version.patch b/modules/rules_ios/4.7.1/patches/module_dot_bazel_version.patch new file mode 100644 index 00000000000..e5ee575e54f --- /dev/null +++ b/modules/rules_ios/4.7.1/patches/module_dot_bazel_version.patch @@ -0,0 +1,14 @@ +=================================================================== +--- a/MODULE.bazel ++++ b/MODULE.bazel +@@ -5,9 +5,9 @@ + # Defines the rules_ios bzlmod module. + # Version is updated during release to the registry. + module( + name = "rules_ios", +- version = "0", ++ version = "4.7.1", + bazel_compatibility = [ + ">=6.0.0", + ], + compatibility_level = 1, diff --git a/modules/rules_ios/4.7.1/presubmit.yml b/modules/rules_ios/4.7.1/presubmit.yml new file mode 100644 index 00000000000..13feb413e34 --- /dev/null +++ b/modules/rules_ios/4.7.1/presubmit.yml @@ -0,0 +1,17 @@ +matrix: + bazel: ["6.x", "7.x"] +tasks: + verify_build_targets_bazel_6: + name: Verify Build targets on macOS with Bazel 6 + platform: macos_arm64 + bazel: 6.x + build_targets: + - "@rules_ios//rules/..." + verify_build_targets_bazel_7: + name: Verify Build targets on macOS with Bazel 7 + platform: macos_arm64 + bazel: 7.x + build_targets: + - "@rules_ios//rules/..." + build_flags: + - "--repo_env=BAZEL_DO_NOT_DETECT_CPP_TOOLCHAIN=1" diff --git a/modules/rules_ios/4.7.1/source.json b/modules/rules_ios/4.7.1/source.json new file mode 100644 index 00000000000..f0827e97318 --- /dev/null +++ b/modules/rules_ios/4.7.1/source.json @@ -0,0 +1,9 @@ +{ + "integrity": "sha256-8HIQjkEWV/D5dTGC/tmgNWOJdvQjHaFElUldlg3wVvU=", + "strip_prefix": "", + "url": "https://github.com/bazel-ios/rules_ios/releases/download/4.7.1/rules_ios.4.7.1.tar.gz", + "patches": { + "module_dot_bazel_version.patch": "sha256-5iNf688bd7F5OTCq4E2hItgA54A4wgX3bdUeU3C/3f4=" + }, + "patch_strip": 1 +} diff --git a/modules/rules_ios/metadata.json b/modules/rules_ios/metadata.json index 8a94ecb8c07..0e931910222 100644 --- a/modules/rules_ios/metadata.json +++ b/modules/rules_ios/metadata.json @@ -31,7 +31,9 @@ "4.3.1", "4.4.0", "4.5.0", - "4.6.0" + "4.6.0", + "4.7.0", + "4.7.1" ], "yanked_versions": {} } diff --git a/modules/rules_java/7.6.4/MODULE.bazel b/modules/rules_java/7.6.4/MODULE.bazel new file mode 100644 index 00000000000..cc5935b7b7f --- /dev/null +++ b/modules/rules_java/7.6.4/MODULE.bazel @@ -0,0 +1,99 @@ +module( + name = "rules_java", + version = "7.6.4", + # Requires @bazel_tools//tools/jdk:bootstrap_runtime_toolchain_type. + bazel_compatibility = [">=7.0.0"], + compatibility_level = 1, +) + +bazel_dep(name = "platforms", version = "0.0.4") +bazel_dep(name = "rules_cc", version = "0.0.2") +bazel_dep(name = "bazel_features", version = "1.11.0") +bazel_dep(name = "bazel_skylib", version = "1.6.1") + +# Required by @remote_java_tools, which is loaded via module extension. +bazel_dep(name = "rules_proto", version = "4.0.0") +bazel_dep(name = "rules_license", version = "0.0.3") + +register_toolchains("//toolchains:all") + +toolchains = use_extension("//java:extensions.bzl", "toolchains") + +# Declare remote java tools repos +use_repo(toolchains, "remote_java_tools") +use_repo(toolchains, "remote_java_tools_linux") +use_repo(toolchains, "remote_java_tools_windows") +use_repo(toolchains, "remote_java_tools_darwin_x86_64") +use_repo(toolchains, "remote_java_tools_darwin_arm64") + +# Declare local jdk repo +use_repo(toolchains, "local_jdk") + +register_toolchains( + "@local_jdk//:runtime_toolchain_definition", + "@local_jdk//:bootstrap_runtime_toolchain_definition", +) + +# Declare all remote jdk toolchain config repos +JDKS = { + # Must match JDK repos defined in remote_jdk8_repos() + "8": [ + "linux", + "linux_aarch64", + "linux_s390x", + "macos", + "macos_aarch64", + "windows", + ], + # Must match JDK repos defined in remote_jdk11_repos() + "11": [ + "linux", + "linux_aarch64", + "linux_ppc64le", + "linux_s390x", + "macos", + "macos_aarch64", + "win", + "win_arm64", + ], + # Must match JDK repos defined in remote_jdk17_repos() + "17": [ + "linux", + "linux_aarch64", + "linux_ppc64le", + "linux_s390x", + "macos", + "macos_aarch64", + "win", + "win_arm64", + ], + # Must match JDK repos defined in remote_jdk21_repos() + "21": [ + "linux", + "linux_aarch64", + "linux_ppc64le", + "linux_s390x", + "macos", + "macos_aarch64", + "win", + "win_arm64", + ], +} + +REMOTE_JDK_REPOS = [(("remote_jdk" if version == "8" else "remotejdk") + version + "_" + platform) for version in JDKS for platform in JDKS[version]] + +[use_repo( + toolchains, + repo + "_toolchain_config_repo", +) for repo in REMOTE_JDK_REPOS] + +[register_toolchains("@" + name + "_toolchain_config_repo//:all") for name in REMOTE_JDK_REPOS] + +# Dev dependencies +bazel_dep(name = "rules_pkg", version = "0.9.1", dev_dependency = True) + +# Override rules_python version to deal with #161 and https://github.com/bazelbuild/bazel/issues/20458 +single_version_override( + module_name = "rules_python", + version = "0.24.0", +) diff --git a/modules/rules_java/7.6.4/presubmit.yml b/modules/rules_java/7.6.4/presubmit.yml new file mode 100644 index 00000000000..a99433433d0 --- /dev/null +++ b/modules/rules_java/7.6.4/presubmit.yml @@ -0,0 +1,16 @@ +matrix: + platform: + - centos7 + - debian10 + - macos + - ubuntu2004 + - windows + bazel: + - 7.x +tasks: + verify_build_targets: + name: "Verify build targets" + platform: ${{ platform }} + bazel: ${{ bazel }} + build_targets: + - "@rules_java//java/..." diff --git a/modules/rules_java/7.6.4/source.json b/modules/rules_java/7.6.4/source.json new file mode 100644 index 00000000000..625d3cfbb6f --- /dev/null +++ b/modules/rules_java/7.6.4/source.json @@ -0,0 +1,5 @@ +{ + "integrity": "sha256-gOYfUI/3mj/eSlSbix9ux/ioLCWeUSQKRAPlvjb4gUI=", + "strip_prefix": "", + "url": "https://github.com/bazelbuild/rules_java/releases/download/7.6.4/rules_java-7.6.4.tar.gz" +} diff --git a/modules/rules_java/7.6.5/MODULE.bazel b/modules/rules_java/7.6.5/MODULE.bazel new file mode 100644 index 00000000000..e5357d64d35 --- /dev/null +++ b/modules/rules_java/7.6.5/MODULE.bazel @@ -0,0 +1,99 @@ +module( + name = "rules_java", + version = "7.6.5", + # Requires @bazel_tools//tools/jdk:bootstrap_runtime_toolchain_type. + bazel_compatibility = [">=7.0.0"], + compatibility_level = 1, +) + +bazel_dep(name = "platforms", version = "0.0.4") +bazel_dep(name = "rules_cc", version = "0.0.2") +bazel_dep(name = "bazel_features", version = "1.11.0") +bazel_dep(name = "bazel_skylib", version = "1.6.1") + +# Required by @remote_java_tools, which is loaded via module extension. +bazel_dep(name = "rules_proto", version = "4.0.0") +bazel_dep(name = "rules_license", version = "0.0.3") + +register_toolchains("//toolchains:all") + +toolchains = use_extension("//java:extensions.bzl", "toolchains") + +# Declare remote java tools repos +use_repo(toolchains, "remote_java_tools") +use_repo(toolchains, "remote_java_tools_linux") +use_repo(toolchains, "remote_java_tools_windows") +use_repo(toolchains, "remote_java_tools_darwin_x86_64") +use_repo(toolchains, "remote_java_tools_darwin_arm64") + +# Declare local jdk repo +use_repo(toolchains, "local_jdk") + +register_toolchains( + "@local_jdk//:runtime_toolchain_definition", + "@local_jdk//:bootstrap_runtime_toolchain_definition", +) + +# Declare all remote jdk toolchain config repos +JDKS = { + # Must match JDK repos defined in remote_jdk8_repos() + "8": [ + "linux", + "linux_aarch64", + "linux_s390x", + "macos", + "macos_aarch64", + "windows", + ], + # Must match JDK repos defined in remote_jdk11_repos() + "11": [ + "linux", + "linux_aarch64", + "linux_ppc64le", + "linux_s390x", + "macos", + "macos_aarch64", + "win", + "win_arm64", + ], + # Must match JDK repos defined in remote_jdk17_repos() + "17": [ + "linux", + "linux_aarch64", + "linux_ppc64le", + "linux_s390x", + "macos", + "macos_aarch64", + "win", + "win_arm64", + ], + # Must match JDK repos defined in remote_jdk21_repos() + "21": [ + "linux", + "linux_aarch64", + "linux_ppc64le", + "linux_s390x", + "macos", + "macos_aarch64", + "win", + "win_arm64", + ], +} + +REMOTE_JDK_REPOS = [(("remote_jdk" if version == "8" else "remotejdk") + version + "_" + platform) for version in JDKS for platform in JDKS[version]] + +[use_repo( + toolchains, + repo + "_toolchain_config_repo", +) for repo in REMOTE_JDK_REPOS] + +[register_toolchains("@" + name + "_toolchain_config_repo//:all") for name in REMOTE_JDK_REPOS] + +# Dev dependencies +bazel_dep(name = "rules_pkg", version = "0.9.1", dev_dependency = True) + +# Override rules_python version to deal with #161 and https://github.com/bazelbuild/bazel/issues/20458 +single_version_override( + module_name = "rules_python", + version = "0.24.0", +) diff --git a/modules/rules_java/7.6.5/presubmit.yml b/modules/rules_java/7.6.5/presubmit.yml new file mode 100644 index 00000000000..a99433433d0 --- /dev/null +++ b/modules/rules_java/7.6.5/presubmit.yml @@ -0,0 +1,16 @@ +matrix: + platform: + - centos7 + - debian10 + - macos + - ubuntu2004 + - windows + bazel: + - 7.x +tasks: + verify_build_targets: + name: "Verify build targets" + platform: ${{ platform }} + bazel: ${{ bazel }} + build_targets: + - "@rules_java//java/..." diff --git a/modules/rules_java/7.6.5/source.json b/modules/rules_java/7.6.5/source.json new file mode 100644 index 00000000000..4968bd8078d --- /dev/null +++ b/modules/rules_java/7.6.5/source.json @@ -0,0 +1,5 @@ +{ + "integrity": "sha256-iv0FPdKnuFpPAzWE8wp/FmbFSSxWx24E7sRCi9sqhs8=", + "strip_prefix": "", + "url": "https://github.com/bazelbuild/rules_java/releases/download/7.6.5/rules_java-7.6.5.tar.gz" +} diff --git a/modules/rules_java/metadata.json b/modules/rules_java/metadata.json index a42d0c4a5af..efd3f2030db 100644 --- a/modules/rules_java/metadata.json +++ b/modules/rules_java/metadata.json @@ -40,7 +40,9 @@ "7.6.0", "7.6.1", "7.6.2", - "7.6.3" + "7.6.3", + "7.6.4", + "7.6.5" ], "yanked_versions": { "6.3.3": "6.3.3 is a broken version.", diff --git a/modules/rules_multitool/0.10.0/MODULE.bazel b/modules/rules_multitool/0.10.0/MODULE.bazel new file mode 100644 index 00000000000..bd328e4f05d --- /dev/null +++ b/modules/rules_multitool/0.10.0/MODULE.bazel @@ -0,0 +1,18 @@ +"multitool" + +module( + name = "rules_multitool", + version = "0.10.0", + compatibility_level = 1, +) + +bazel_dep(name = "bazel_features", version = "1.9.0") +bazel_dep(name = "bazel_skylib", version = "1.5.0") +bazel_dep(name = "buildifier_prebuilt", version = "6.4.0") +bazel_dep(name = "platforms", version = "0.0.8") + +# ensure toolchains get registered +multitool = use_extension("//multitool:extension.bzl", "multitool") +use_repo(multitool, "multitool") + +register_toolchains("@multitool//toolchains:all") diff --git a/modules/rules_multitool/0.10.0/presubmit.yml b/modules/rules_multitool/0.10.0/presubmit.yml new file mode 100644 index 00000000000..a90b2cabc28 --- /dev/null +++ b/modules/rules_multitool/0.10.0/presubmit.yml @@ -0,0 +1,15 @@ +matrix: + platform: + - debian10 + - ubuntu2004 + - macos + - macos_arm64 + bazel: + - 7.x +tasks: + verify_targets: + name: Verify build targets + platform: ${{ platform }} + bazel: ${{ bazel }} + build_targets: + - '@rules_multitool//...' diff --git a/modules/rules_multitool/0.10.0/source.json b/modules/rules_multitool/0.10.0/source.json new file mode 100644 index 00000000000..a8343213850 --- /dev/null +++ b/modules/rules_multitool/0.10.0/source.json @@ -0,0 +1,5 @@ +{ + "integrity": "sha256-eoa0ZTtGpXOlzCX1ovBfEE8cvHOkJ6uJdyk+qwiFokE=", + "strip_prefix": "rules_multitool-0.10.0", + "url": "https://github.com/theoremlp/rules_multitool/releases/download/v0.10.0/rules_multitool-0.10.0.tar.gz" +} diff --git a/modules/rules_multitool/0.9.0/MODULE.bazel b/modules/rules_multitool/0.9.0/MODULE.bazel new file mode 100644 index 00000000000..5d046e47784 --- /dev/null +++ b/modules/rules_multitool/0.9.0/MODULE.bazel @@ -0,0 +1,18 @@ +"multitool" + +module( + name = "rules_multitool", + version = "0.9.0", + compatibility_level = 1, +) + +bazel_dep(name = "bazel_features", version = "1.9.0") +bazel_dep(name = "bazel_skylib", version = "1.5.0") +bazel_dep(name = "buildifier_prebuilt", version = "6.4.0") +bazel_dep(name = "platforms", version = "0.0.8") + +# ensure toolchains get registered +multitool = use_extension("//multitool:extension.bzl", "multitool") +use_repo(multitool, "multitool") + +register_toolchains("@multitool//toolchains:all") diff --git a/modules/rules_multitool/0.9.0/presubmit.yml b/modules/rules_multitool/0.9.0/presubmit.yml new file mode 100644 index 00000000000..a90b2cabc28 --- /dev/null +++ b/modules/rules_multitool/0.9.0/presubmit.yml @@ -0,0 +1,15 @@ +matrix: + platform: + - debian10 + - ubuntu2004 + - macos + - macos_arm64 + bazel: + - 7.x +tasks: + verify_targets: + name: Verify build targets + platform: ${{ platform }} + bazel: ${{ bazel }} + build_targets: + - '@rules_multitool//...' diff --git a/modules/rules_multitool/0.9.0/source.json b/modules/rules_multitool/0.9.0/source.json new file mode 100644 index 00000000000..ad6806f6a2e --- /dev/null +++ b/modules/rules_multitool/0.9.0/source.json @@ -0,0 +1,5 @@ +{ + "integrity": "sha256-MU0Jd0xE4te98rX0XCFQkT6FMnDSR4dIB6AMHh5endY=", + "strip_prefix": "rules_multitool-0.9.0", + "url": "https://github.com/theoremlp/rules_multitool/releases/download/v0.9.0/rules_multitool-0.9.0.tar.gz" +} diff --git a/modules/rules_multitool/metadata.json b/modules/rules_multitool/metadata.json index 99e9156d78f..c5167a96976 100644 --- a/modules/rules_multitool/metadata.json +++ b/modules/rules_multitool/metadata.json @@ -24,7 +24,9 @@ "0.5.0", "0.6.0", "0.7.1", - "0.8.0" + "0.8.0", + "0.9.0", + "0.10.0" ], "yanked_versions": {} } diff --git a/modules/rules_proto/6.0.2/MODULE.bazel b/modules/rules_proto/6.0.2/MODULE.bazel new file mode 100644 index 00000000000..241b65088bb --- /dev/null +++ b/modules/rules_proto/6.0.2/MODULE.bazel @@ -0,0 +1,19 @@ +"Bazel dependencies" + +module( + name = "rules_proto", + # Note: the publish-to-BCR app will patch this line to stamp the version being published. + version = "6.0.2", + compatibility_level = 1, +) + +bazel_dep(name = "bazel_features", version = "1.4.1") +bazel_dep(name = "bazel_skylib", version = "1.3.0") +bazel_dep(name = "rules_cc", version = "0.0.1") +bazel_dep(name = "rules_license", version = "0.0.7") + +# Dependencies needed in tests +bazel_dep(name = "stardoc", version = "0.5.6", dev_dependency = True, repo_name = "io_bazel_stardoc") +bazel_dep(name = "googletest", version = "1.11.0", dev_dependency = True, repo_name = "com_google_googletest") +bazel_dep(name = "protobuf", version = "23.1", dev_dependency = True, repo_name = "com_google_protobuf") +bazel_dep(name = "platforms", version = "0.0.8", dev_dependency = True) diff --git a/modules/rules_proto/6.0.2/patches/module_dot_bazel_version.patch b/modules/rules_proto/6.0.2/patches/module_dot_bazel_version.patch new file mode 100644 index 00000000000..6df0ee96505 --- /dev/null +++ b/modules/rules_proto/6.0.2/patches/module_dot_bazel_version.patch @@ -0,0 +1,14 @@ +=================================================================== +--- a/MODULE.bazel ++++ b/MODULE.bazel +@@ -2,9 +2,9 @@ + + module( + name = "rules_proto", + # Note: the publish-to-BCR app will patch this line to stamp the version being published. +- version = "0.0.0", ++ version = "6.0.2", + compatibility_level = 1, + ) + + bazel_dep(name = "bazel_features", version = "1.4.1") diff --git a/modules/rules_proto/6.0.2/presubmit.yml b/modules/rules_proto/6.0.2/presubmit.yml new file mode 100644 index 00000000000..f7bceee48da --- /dev/null +++ b/modules/rules_proto/6.0.2/presubmit.yml @@ -0,0 +1,10 @@ +matrix: + platform: ["centos7", "debian10", "macos", "ubuntu2004", "windows"] + bazel: ['7.x', '6.x'] +tasks: + verify_build_targets: + name: "Verify build targets" + bazel: ${{ bazel }} + platform: ${{ platform }} + build_targets: + - "@rules_proto//proto/..." diff --git a/modules/rules_proto/6.0.2/source.json b/modules/rules_proto/6.0.2/source.json new file mode 100644 index 00000000000..d12e3b4cf77 --- /dev/null +++ b/modules/rules_proto/6.0.2/source.json @@ -0,0 +1,9 @@ +{ + "integrity": "sha256-b7Z2fRvvU1MQVH4DJH91GLA0h3QMEbbGrbeVIDP+EpU=", + "strip_prefix": "rules_proto-6.0.2", + "url": "https://github.com/bazelbuild/rules_proto/releases/download/6.0.2/rules_proto-6.0.2.tar.gz", + "patches": { + "module_dot_bazel_version.patch": "sha256-mSkx6yiEGJElbRauESSW2YIUz1r8vRqmVAYOhV/Sjwc=" + }, + "patch_strip": 1 +} diff --git a/modules/rules_proto/metadata.json b/modules/rules_proto/metadata.json index 2e479d6e1e6..1ae8f9356cd 100644 --- a/modules/rules_proto/metadata.json +++ b/modules/rules_proto/metadata.json @@ -26,7 +26,8 @@ "6.0.0-rc2", "6.0.0-rc3", "6.0.0", - "6.0.0.bcr.1" + "6.0.0.bcr.1", + "6.0.2" ], "yanked_versions": {}, "repository": [ diff --git a/modules/rules_python/0.33.2/MODULE.bazel b/modules/rules_python/0.33.2/MODULE.bazel new file mode 100644 index 00000000000..73abc4668f9 --- /dev/null +++ b/modules/rules_python/0.33.2/MODULE.bazel @@ -0,0 +1,134 @@ +module( + name = "rules_python", + version = "0.33.2", + compatibility_level = 1, +) + +bazel_dep(name = "bazel_features", version = "1.9.1") +bazel_dep(name = "bazel_skylib", version = "1.6.1") +bazel_dep(name = "rules_cc", version = "0.0.9") +bazel_dep(name = "platforms", version = "0.0.4") + +# Those are loaded only when using py_proto_library +bazel_dep(name = "rules_proto", version = "6.0.0-rc1") +bazel_dep(name = "protobuf", version = "21.7", repo_name = "com_google_protobuf") + +internal_deps = use_extension("//python/private/bzlmod:internal_deps.bzl", "internal_deps") +use_repo( + internal_deps, + "rules_python_internal", + # START: maintained by 'bazel run //tools/private/update_deps:update_pip_deps' + "pypi__build", + "pypi__click", + "pypi__colorama", + "pypi__importlib_metadata", + "pypi__installer", + "pypi__more_itertools", + "pypi__packaging", + "pypi__pep517", + "pypi__pip", + "pypi__pip_tools", + "pypi__pyproject_hooks", + "pypi__setuptools", + "pypi__tomli", + "pypi__wheel", + "pypi__zipp", + # END: maintained by 'bazel run //tools/private/update_deps:update_pip_deps' +) + +# We need to do another use_extension call to expose the "pythons_hub" +# repo. +python = use_extension("//python/extensions:python.bzl", "python") + +# The default toolchain to use if nobody configures a toolchain. +# NOTE: This is not a stable version. It is provided for convenience, but will +# change frequently to track the most recent Python version. +# NOTE: The root module can override this. +python.toolchain( + is_default = True, + python_version = "3.11", +) +use_repo(python, "python_3_11", "python_versions", "pythons_hub") + +# This call registers the Python toolchains. +register_toolchains("@pythons_hub//:all") + +##################### +# Install twine for our own runfiles wheel publishing and allow bzlmod users to use it. + +pip = use_extension("//python/private/bzlmod:pip.bzl", "pip_internal") +pip.parse( + hub_name = "rules_python_publish_deps", + python_version = "3.11", + requirements_by_platform = { + "//tools/publish:requirements.txt": "linux_*", + "//tools/publish:requirements_darwin.txt": "osx_*", + "//tools/publish:requirements_windows.txt": "windows_*", + }, +) +use_repo(pip, "rules_python_publish_deps") + +# ===== DEV ONLY DEPS AND SETUP BELOW HERE ===== +bazel_dep(name = "stardoc", version = "0.6.2", dev_dependency = True, repo_name = "io_bazel_stardoc") +bazel_dep(name = "rules_bazel_integration_test", version = "0.20.0", dev_dependency = True) +bazel_dep(name = "rules_testing", version = "0.6.0", dev_dependency = True) + +# Extra gazelle plugin deps so that WORKSPACE.bzlmod can continue including it for e2e tests. +# We use `WORKSPACE.bzlmod` because it is impossible to have dev-only local overrides. +bazel_dep(name = "rules_go", version = "0.41.0", dev_dependency = True, repo_name = "io_bazel_rules_go") +bazel_dep(name = "gazelle", version = "0.33.0", dev_dependency = True, repo_name = "bazel_gazelle") + +dev_pip = use_extension( + "//python/private/bzlmod:pip.bzl", + "pip_internal", + dev_dependency = True, +) +dev_pip.parse( + experimental_requirement_cycles = { + "sphinx": [ + "sphinx", + "sphinxcontrib-serializinghtml", + "sphinxcontrib-qthelp", + "sphinxcontrib-htmlhelp", + "sphinxcontrib-devhelp", + "sphinxcontrib-applehelp", + ], + }, + hub_name = "dev_pip", + python_version = "3.11", + requirements_by_platform = { + "//docs/sphinx:requirements.txt": "linux_*,osx_*", + }, +) +dev_pip.parse( + hub_name = "pypiserver", + python_version = "3.11", + requirements_lock = "//examples/wheel:requirements_server.txt", +) +use_repo(dev_pip, "dev_pip", "pypiserver") + +# Bazel integration test setup below + +bazel_binaries = use_extension( + "@rules_bazel_integration_test//:extensions.bzl", + "bazel_binaries", + dev_dependency = True, +) + +# Keep in sync with //:version.bzl +bazel_binaries.local( + name = "self", + path = "tests/integration/bazel_from_env", +) +bazel_binaries.download(version = "6.4.0") +bazel_binaries.download(version = "rolling") +use_repo( + bazel_binaries, + "bazel_binaries", + # These don't appear necessary, but are reported as direct dependencies + # that should be use_repo()'d, so we add them as requested + "bazel_binaries_bazelisk", + "build_bazel_bazel_6_4_0", + "build_bazel_bazel_rolling", + "build_bazel_bazel_self", +) diff --git a/modules/rules_python/0.33.2/patches/module_dot_bazel_version.patch b/modules/rules_python/0.33.2/patches/module_dot_bazel_version.patch new file mode 100644 index 00000000000..d63a4602c3e --- /dev/null +++ b/modules/rules_python/0.33.2/patches/module_dot_bazel_version.patch @@ -0,0 +1,12 @@ +=================================================================== +--- a/MODULE.bazel ++++ b/MODULE.bazel +@@ -1,7 +1,7 @@ + module( + name = "rules_python", +- version = "0.0.0", ++ version = "0.33.2", + compatibility_level = 1, + ) + + bazel_dep(name = "bazel_features", version = "1.9.1") diff --git a/modules/rules_python/0.33.2/presubmit.yml b/modules/rules_python/0.33.2/presubmit.yml new file mode 100644 index 00000000000..6be334ebfe9 --- /dev/null +++ b/modules/rules_python/0.33.2/presubmit.yml @@ -0,0 +1,26 @@ +# Copyright 2023 The Bazel Authors. All rights reserved. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +bcr_test_module: + module_path: "examples/bzlmod" + matrix: + platform: ["debian11", "macos", "ubuntu2004", "windows"] + bazel: [6.x, 7.x] + tasks: + run_tests: + name: "Run test module" + platform: ${{ platform }} + bazel: ${{ bazel }} + test_targets: + - "//..." diff --git a/modules/rules_python/0.33.2/source.json b/modules/rules_python/0.33.2/source.json new file mode 100644 index 00000000000..472deb89ff4 --- /dev/null +++ b/modules/rules_python/0.33.2/source.json @@ -0,0 +1,9 @@ +{ + "integrity": "sha256-4/HMegTZsJY1r7MTBzHtgrX1jq3IIz1O+1mUTZL/wG8=", + "strip_prefix": "rules_python-0.33.2", + "url": "https://github.com/bazelbuild/rules_python/releases/download/0.33.2/rules_python-0.33.2.tar.gz", + "patches": { + "module_dot_bazel_version.patch": "sha256-wokeU3ERM8RdlVsrp+N1uJwaaoRyKbE1Q3JqP3ChJjQ=" + }, + "patch_strip": 1 +} diff --git a/modules/rules_python/metadata.json b/modules/rules_python/metadata.json index 017374c6267..f3c50e46dbb 100644 --- a/modules/rules_python/metadata.json +++ b/modules/rules_python/metadata.json @@ -47,7 +47,8 @@ "0.32.1", "0.32.2", "0.33.0", - "0.33.1" + "0.33.1", + "0.33.2" ], "yanked_versions": { "0.14.0": "rules_python 0.14.0 is broken due to https://github.com/bazelbuild/bazel-central-registry/issues/287, please upgrade to version >= 0.15.0" diff --git a/modules/rules_python_gazelle_plugin/0.33.2/MODULE.bazel b/modules/rules_python_gazelle_plugin/0.33.2/MODULE.bazel new file mode 100644 index 00000000000..20bb25c8d0b --- /dev/null +++ b/modules/rules_python_gazelle_plugin/0.33.2/MODULE.bazel @@ -0,0 +1,39 @@ +module( + name = "rules_python_gazelle_plugin", + version = "0.33.2", + compatibility_level = 1, +) + +bazel_dep(name = "bazel_skylib", version = "1.6.1") +bazel_dep(name = "rules_python", version = "0.18.0") +bazel_dep(name = "rules_go", version = "0.41.0", repo_name = "io_bazel_rules_go") +bazel_dep(name = "gazelle", version = "0.33.0", repo_name = "bazel_gazelle") + +local_path_override( + module_name = "rules_python", + path = "..", +) + +go_deps = use_extension("@bazel_gazelle//:extensions.bzl", "go_deps") +go_deps.from_file(go_mod = "//:go.mod") +use_repo( + go_deps, + "com_github_bazelbuild_buildtools", + "com_github_bmatcuk_doublestar_v4", + "com_github_emirpasic_gods", + "com_github_ghodss_yaml", + "com_github_smacker_go_tree_sitter", + "com_github_stretchr_testify", + "in_gopkg_yaml_v2", + "org_golang_x_sync", +) + +python_stdlib_list = use_extension("//python:extensions.bzl", "python_stdlib_list") +use_repo( + python_stdlib_list, + "python_stdlib_list_3_10", + "python_stdlib_list_3_11", + "python_stdlib_list_3_12", + "python_stdlib_list_3_8", + "python_stdlib_list_3_9", +) diff --git a/modules/rules_python_gazelle_plugin/0.33.2/patches/module_dot_bazel_version.patch b/modules/rules_python_gazelle_plugin/0.33.2/patches/module_dot_bazel_version.patch new file mode 100644 index 00000000000..83ceec20d70 --- /dev/null +++ b/modules/rules_python_gazelle_plugin/0.33.2/patches/module_dot_bazel_version.patch @@ -0,0 +1,12 @@ +=================================================================== +--- a/MODULE.bazel ++++ b/MODULE.bazel +@@ -1,7 +1,7 @@ + module( + name = "rules_python_gazelle_plugin", +- version = "0.0.0", ++ version = "0.33.2", + compatibility_level = 1, + ) + + bazel_dep(name = "bazel_skylib", version = "1.6.1") diff --git a/modules/rules_python_gazelle_plugin/0.33.2/presubmit.yml b/modules/rules_python_gazelle_plugin/0.33.2/presubmit.yml new file mode 100644 index 00000000000..659beab5256 --- /dev/null +++ b/modules/rules_python_gazelle_plugin/0.33.2/presubmit.yml @@ -0,0 +1,29 @@ +# Copyright 2023 The Bazel Authors. All rights reserved. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +bcr_test_module: + module_path: "../examples/bzlmod_build_file_generation" + matrix: + platform: ["debian11", "macos", "ubuntu2004", "windows"] + bazel: [6.x, 7.x] + tasks: + run_tests: + name: "Run test module" + platform: ${{ platform }} + bazel: ${{ bazel }} + build_targets: + - "//..." + - ":modules_map" + test_targets: + - "//..." diff --git a/modules/rules_python_gazelle_plugin/0.33.2/source.json b/modules/rules_python_gazelle_plugin/0.33.2/source.json new file mode 100644 index 00000000000..21612cd84f3 --- /dev/null +++ b/modules/rules_python_gazelle_plugin/0.33.2/source.json @@ -0,0 +1,9 @@ +{ + "integrity": "sha256-4/HMegTZsJY1r7MTBzHtgrX1jq3IIz1O+1mUTZL/wG8=", + "strip_prefix": "rules_python-0.33.2/gazelle", + "url": "https://github.com/bazelbuild/rules_python/releases/download/0.33.2/rules_python-0.33.2.tar.gz", + "patches": { + "module_dot_bazel_version.patch": "sha256-LjVpkqF07uIpLGAZ5LUzi3qE8Mb8uei7bPpDzJTXDlY=" + }, + "patch_strip": 1 +} diff --git a/modules/rules_python_gazelle_plugin/metadata.json b/modules/rules_python_gazelle_plugin/metadata.json index a96bddb92a6..085332502cb 100644 --- a/modules/rules_python_gazelle_plugin/metadata.json +++ b/modules/rules_python_gazelle_plugin/metadata.json @@ -30,7 +30,8 @@ "0.32.1", "0.32.2", "0.33.0", - "0.33.1" + "0.33.1", + "0.33.2" ], "yanked_versions": {} } diff --git a/modules/rules_swift_package_manager/0.33.0/MODULE.bazel b/modules/rules_swift_package_manager/0.33.0/MODULE.bazel new file mode 100644 index 00000000000..2d0ea3650c8 --- /dev/null +++ b/modules/rules_swift_package_manager/0.33.0/MODULE.bazel @@ -0,0 +1,78 @@ +module( + name = "rules_swift_package_manager", + version = "0.33.0", +) + +# MARK: - Runtime Dependencies + +bazel_dep(name = "cgrindel_bazel_starlib", version = "0.18.1") +bazel_dep(name = "bazel_skylib", version = "1.4.2") +bazel_dep( + name = "rules_go", + version = "0.47.0", + repo_name = "io_bazel_rules_go", +) + +# The apple_support bazel_dep must come before the rules_cc. +# https://github.com/bazelbuild/apple_support#incompatible-toolchain-resolution +bazel_dep(name = "apple_support", version = "1.11.1") +bazel_dep(name = "rules_cc", version = "0.0.6") +bazel_dep(name = "platforms", version = "0.0.6") + +# With bzlmod enabled, any dependencies for repositories generated by +# rules_swift_package_manager _must_ be a runtime dependency of rules_swift_package_manager. +bazel_dep( + name = "rules_swift", + version = "1.16.0", + repo_name = "build_bazel_rules_swift", +) +bazel_dep( + name = "rules_apple", + version = "3.1.1", + repo_name = "build_bazel_rules_apple", +) +bazel_dep( + name = "gazelle", + version = "0.36.0", + repo_name = "bazel_gazelle", +) + +apple_cc_configure = use_extension( + "@apple_support//crosstool:setup.bzl", + "apple_cc_configure_extension", +) +use_repo(apple_cc_configure, "local_config_apple_cc") + +go_deps = use_extension("@bazel_gazelle//:extensions.bzl", "go_deps") +go_deps.from_file(go_mod = "//:go.mod") +use_repo( + go_deps, + "com_github_bazelbuild_buildtools", + "com_github_creasty_defaults", + "com_github_deckarep_golang_set_v2", + "com_github_stretchr_testify", + "in_gopkg_yaml_v3", + "org_golang_x_exp", + "org_golang_x_text", +) + +# MARK: - Dev Dependencies + +bazel_dep( + name = "rules_bazel_integration_test", + version = "0.14.1", + dev_dependency = True, +) +bazel_dep( + name = "bazel_skylib_gazelle_plugin", + version = "1.4.1", + dev_dependency = True, +) + +bazel_binaries = use_extension( + "@rules_bazel_integration_test//:extensions.bzl", + "bazel_binaries", + dev_dependency = True, +) +bazel_binaries.download(version_file = "//:.bazelversion") +use_repo(bazel_binaries, "bazel_binaries") diff --git a/modules/rules_swift_package_manager/0.33.0/patches/module_dot_bazel_version.patch b/modules/rules_swift_package_manager/0.33.0/patches/module_dot_bazel_version.patch new file mode 100644 index 00000000000..ecb0a40be50 --- /dev/null +++ b/modules/rules_swift_package_manager/0.33.0/patches/module_dot_bazel_version.patch @@ -0,0 +1,12 @@ +=================================================================== +--- a/MODULE.bazel ++++ b/MODULE.bazel +@@ -1,7 +1,7 @@ + module( + name = "rules_swift_package_manager", +- version = "0.0.0", ++ version = "0.33.0", + ) + + # MARK: - Runtime Dependencies + diff --git a/modules/rules_swift_package_manager/0.33.0/presubmit.yml b/modules/rules_swift_package_manager/0.33.0/presubmit.yml new file mode 100644 index 00000000000..c06fab54c48 --- /dev/null +++ b/modules/rules_swift_package_manager/0.33.0/presubmit.yml @@ -0,0 +1,14 @@ +bcr_test_module: + module_path: "" + matrix: + platform: ["macos"] + bazel: + # This needs to exactly match the value used in .bazelversion at the root. + - 7.1.2 + tasks: + run_tests: + name: "Run test module" + platform: ${{ platform }} + bazel: ${{ bazel }} + test_targets: + - "//bzlmod:e2e_test" diff --git a/modules/rules_swift_package_manager/0.33.0/source.json b/modules/rules_swift_package_manager/0.33.0/source.json new file mode 100644 index 00000000000..4e077735b25 --- /dev/null +++ b/modules/rules_swift_package_manager/0.33.0/source.json @@ -0,0 +1,9 @@ +{ + "integrity": "sha256-0W7BP92c51SRfxajvjGM76MCNIEZmR3ypgjBeaZeRkg=", + "strip_prefix": "", + "url": "https://github.com/cgrindel/rules_swift_package_manager/releases/download/v0.33.0/rules_swift_package_manager.v0.33.0.tar.gz", + "patches": { + "module_dot_bazel_version.patch": "sha256-GWYp5o1gFAlTOzplZQoBGg63tt3L9ZPrl/lw+Py8yzQ=" + }, + "patch_strip": 1 +} diff --git a/modules/rules_swift_package_manager/metadata.json b/modules/rules_swift_package_manager/metadata.json index 701e2036fc4..cbcd73574b6 100644 --- a/modules/rules_swift_package_manager/metadata.json +++ b/modules/rules_swift_package_manager/metadata.json @@ -45,7 +45,8 @@ "0.29.2", "0.30.0", "0.31.1", - "0.32.0" + "0.32.0", + "0.33.0" ], "yanked_versions": {} } diff --git a/modules/rules_uv/0.14.0/MODULE.bazel b/modules/rules_uv/0.14.0/MODULE.bazel new file mode 100644 index 00000000000..af3656b31f2 --- /dev/null +++ b/modules/rules_uv/0.14.0/MODULE.bazel @@ -0,0 +1,16 @@ +"rules_uv" + +module( + name = "rules_uv", + version = "0.14.0", + compatibility_level = 1, +) + +bazel_dep(name = "bazel_skylib", version = "1.4.1") +bazel_dep(name = "buildifier_prebuilt", version = "6.1.2") +bazel_dep(name = "platforms", version = "0.0.8") +bazel_dep(name = "rules_multitool", version = "0.4.0") + +multitool = use_extension("@rules_multitool//multitool:extension.bzl", "multitool") +multitool.hub(lockfile = "//uv/private:uv.lock.json") +use_repo(multitool, "multitool") diff --git a/modules/rules_uv/0.14.0/presubmit.yml b/modules/rules_uv/0.14.0/presubmit.yml new file mode 100644 index 00000000000..3a2a60fd70a --- /dev/null +++ b/modules/rules_uv/0.14.0/presubmit.yml @@ -0,0 +1,15 @@ +matrix: + platform: + - debian10 + - ubuntu2004 + - macos + - macos_arm64 + bazel: + - 7.x +tasks: + verify_targets: + name: Verify build targets + platform: ${{ platform }} + bazel: ${{ bazel }} + build_targets: + - "@rules_uv//..." diff --git a/modules/rules_uv/0.14.0/source.json b/modules/rules_uv/0.14.0/source.json new file mode 100644 index 00000000000..d8b07fa3540 --- /dev/null +++ b/modules/rules_uv/0.14.0/source.json @@ -0,0 +1,5 @@ +{ + "integrity": "sha256-MboiK2lFoO/4icBHEZzL2RjchetnJRVkuAzvQQJy4rk=", + "strip_prefix": "rules_uv-0.14.0", + "url": "https://github.com/theoremlp/rules_uv/releases/download/v0.14.0/rules_uv-0.14.0.tar.gz" +} diff --git a/modules/rules_uv/0.15.0/MODULE.bazel b/modules/rules_uv/0.15.0/MODULE.bazel new file mode 100644 index 00000000000..e71a998a98c --- /dev/null +++ b/modules/rules_uv/0.15.0/MODULE.bazel @@ -0,0 +1,16 @@ +"rules_uv" + +module( + name = "rules_uv", + version = "0.15.0", + compatibility_level = 1, +) + +bazel_dep(name = "bazel_skylib", version = "1.4.1") +bazel_dep(name = "buildifier_prebuilt", version = "6.1.2") +bazel_dep(name = "platforms", version = "0.0.8") +bazel_dep(name = "rules_multitool", version = "0.4.0") + +multitool = use_extension("@rules_multitool//multitool:extension.bzl", "multitool") +multitool.hub(lockfile = "//uv/private:uv.lock.json") +use_repo(multitool, "multitool") diff --git a/modules/rules_uv/0.15.0/presubmit.yml b/modules/rules_uv/0.15.0/presubmit.yml new file mode 100644 index 00000000000..3a2a60fd70a --- /dev/null +++ b/modules/rules_uv/0.15.0/presubmit.yml @@ -0,0 +1,15 @@ +matrix: + platform: + - debian10 + - ubuntu2004 + - macos + - macos_arm64 + bazel: + - 7.x +tasks: + verify_targets: + name: Verify build targets + platform: ${{ platform }} + bazel: ${{ bazel }} + build_targets: + - "@rules_uv//..." diff --git a/modules/rules_uv/0.15.0/source.json b/modules/rules_uv/0.15.0/source.json new file mode 100644 index 00000000000..5ae2576bbb5 --- /dev/null +++ b/modules/rules_uv/0.15.0/source.json @@ -0,0 +1,5 @@ +{ + "integrity": "sha256-5bh30ThOX2dsSjdhZzoX2K8vPV0fPX1rgTjt9cB/ksI=", + "strip_prefix": "rules_uv-0.15.0", + "url": "https://github.com/theoremlp/rules_uv/releases/download/v0.15.0/rules_uv-0.15.0.tar.gz" +} diff --git a/modules/rules_uv/metadata.json b/modules/rules_uv/metadata.json index fdcf75b5b9e..4de95396a34 100644 --- a/modules/rules_uv/metadata.json +++ b/modules/rules_uv/metadata.json @@ -29,7 +29,9 @@ "0.10.0", "0.11.0", "0.12.0", - "0.13.0" + "0.13.0", + "0.14.0", + "0.15.0" ], "yanked_versions": {} } diff --git a/modules/rules_xz/1.0.0-beta.1/MODULE.bazel b/modules/rules_xz/1.0.0-beta.1/MODULE.bazel new file mode 100644 index 00000000000..fc920200d41 --- /dev/null +++ b/modules/rules_xz/1.0.0-beta.1/MODULE.bazel @@ -0,0 +1,29 @@ +module( + name = "rules_xz", + version = "1.0.0-beta.1", + bazel_compatibility = [ + ">=7.0.0", + ], + compatibility_level = 1, +) + +bazel_dep(name = "rules_coreutils", version = "1.0.0-beta.1") +bazel_dep(name = "toolchain_utils", version = "1.0.0-beta.9") +bazel_dep(name = "ape", version = "1.0.0-beta.6") + +export = use_extension("@toolchain_utils//toolchain/export:defs.bzl", "toolchain_export") +use_repo(export, "ape-xz") +export.symlink( + name = "xz", + target = "@ape-xz", +) +use_repo(export, "xz") + +resolved = use_repo_rule("@toolchain_utils//toolchain/resolved:defs.bzl", "toolchain_resolved") + +resolved( + name = "resolved-xz", + toolchain_type = "//xz/toolchain/xz:type", +) + +register_toolchains("//xz/toolchain/...") diff --git a/modules/rules_xz/1.0.0-beta.1/presubmit.yml b/modules/rules_xz/1.0.0-beta.1/presubmit.yml new file mode 100644 index 00000000000..8902f1f38a7 --- /dev/null +++ b/modules/rules_xz/1.0.0-beta.1/presubmit.yml @@ -0,0 +1,22 @@ +bcr_test_module: + module_path: e2e + matrix: + bazel: + - 7.x + platform: + - centos7_java11_devtoolset10 + - debian10 + - debian11 + - ubuntu2004 + - ubuntu2204 + - fedora39 + - macos + - macos_arm64 + - windows + tasks: + e2e_tests: + name: Run end-to-end Tests + bazel: ${{ bazel }} + platform: ${{ platform }} + test_targets: + - "//..." diff --git a/modules/rules_xz/1.0.0-beta.1/source.json b/modules/rules_xz/1.0.0-beta.1/source.json new file mode 100644 index 00000000000..66c63ea3910 --- /dev/null +++ b/modules/rules_xz/1.0.0-beta.1/source.json @@ -0,0 +1,5 @@ +{ + "url": "https://gitlab.arm.com/bazel/rules_xz/-/releases/v1.0.0-beta.1/downloads/src.tar.gz", + "integrity": "sha512-7h7aMS56GHqqyWIyIcPBO7v6KFDtLDu1LkP50+wnofXihe0p9NoCAHHLjDhenckLHBkx2Ze4z4FX4c9D7cHqoA==", + "strip_prefix": "rules_xz-v1.0.0-beta.1" +} diff --git a/modules/rules_xz/metadata.json b/modules/rules_xz/metadata.json new file mode 100644 index 00000000000..b47546ef6b1 --- /dev/null +++ b/modules/rules_xz/metadata.json @@ -0,0 +1,16 @@ +{ + "homepage": "https://gitlab.arm.com/bazel/rules_xz", + "repository": [ + "https://gitlab.arm.com/bazel/rules_xz" + ], + "versions": [ + "1.0.0-beta.1" + ], + "maintainers": [ + { + "email": "matthew.clarkson@arm.com", + "name": "Matt Clarkson", + "github": "mattyclarkson" + } + ] +} diff --git a/modules/stardoc/0.7.0/MODULE.bazel b/modules/stardoc/0.7.0/MODULE.bazel new file mode 100644 index 00000000000..b862e8c4376 --- /dev/null +++ b/modules/stardoc/0.7.0/MODULE.bazel @@ -0,0 +1,34 @@ +module( + name = "stardoc", + version = "0.7.0", + bazel_compatibility = [">=7.0.0"], + compatibility_level = 1, +) + +bazel_dep(name = "bazel_skylib", version = "1.6.1") +bazel_dep(name = "rules_java", version = "7.6.1") +bazel_dep(name = "rules_jvm_external", version = "5.2") +bazel_dep(name = "rules_license", version = "0.0.7") + +# Maven artifacts required by Stardoc; keep consistent with deps.bzl +STARDOC_MAVEN_ARTIFACTS = [ + "com.beust:jcommander:1.82", + "com.google.escapevelocity:escapevelocity:1.1", + "com.google.guava:guava:31.1-jre", + "com.google.truth:truth:1.1.3", + "junit:junit:4.13.2", +] + +maven = use_extension("@rules_jvm_external//:extensions.bzl", "maven") +maven.install( + name = "stardoc_maven", + artifacts = STARDOC_MAVEN_ARTIFACTS, + fail_if_repin_required = True, + lock_file = "//:maven_install.json", + repositories = [ + "https://repo1.maven.org/maven2", + ], + strict_visibility = True, +) +use_repo(maven, "stardoc_maven") + diff --git a/modules/stardoc/0.7.0/presubmit.yml b/modules/stardoc/0.7.0/presubmit.yml new file mode 100644 index 00000000000..49d29f3bd95 --- /dev/null +++ b/modules/stardoc/0.7.0/presubmit.yml @@ -0,0 +1,15 @@ +matrix: + platform: + - debian10 + - ubuntu2004 + - macos + - windows + bazel: + - 7.x +tasks: + verify_targets: + name: Verify build targets + platform: ${{ platform }} + bazel: ${{ bazel }} + build_targets: + - '@stardoc//stardoc/...' diff --git a/modules/stardoc/0.7.0/source.json b/modules/stardoc/0.7.0/source.json new file mode 100644 index 00000000000..29b10242045 --- /dev/null +++ b/modules/stardoc/0.7.0/source.json @@ -0,0 +1,4 @@ +{ + "integrity": "sha256-3X8y9P4lN84kUsUfgWpZYtSIiKWwfeLBlfOz2obFRdM=", + "url": "https://github.com/bazelbuild/stardoc/releases/download/0.7.0/stardoc-0.7.0.tar.gz" +} diff --git a/modules/stardoc/metadata.json b/modules/stardoc/metadata.json index 54e3cd3b60c..d16bea5864f 100644 --- a/modules/stardoc/metadata.json +++ b/modules/stardoc/metadata.json @@ -17,7 +17,8 @@ "0.5.6", "0.6.0", "0.6.1", - "0.6.2" + "0.6.2", + "0.7.0" ], "yanked_versions": {} } diff --git a/modules/tinyobjloader/2.0.0-rc1.bcr.1/MODULE.bazel b/modules/tinyobjloader/2.0.0-rc1.bcr.1/MODULE.bazel new file mode 100644 index 00000000000..3df0416a02a --- /dev/null +++ b/modules/tinyobjloader/2.0.0-rc1.bcr.1/MODULE.bazel @@ -0,0 +1,10 @@ +module( + name = "tinyobjloader", + version = "2.0.0-rc1.bcr.1", + compatibility_level = 1, +) + +bazel_dep( + name = "platforms", + version = "0.0.8", +) diff --git a/modules/tinyobjloader/2.0.0-rc1.bcr.1/patches/add_build_dot_bazel.patch b/modules/tinyobjloader/2.0.0-rc1.bcr.1/patches/add_build_dot_bazel.patch new file mode 100644 index 00000000000..096df7f16ff --- /dev/null +++ b/modules/tinyobjloader/2.0.0-rc1.bcr.1/patches/add_build_dot_bazel.patch @@ -0,0 +1,9 @@ +--- BUILD.bazel ++++ BUILD.bazel +@@ -0,0 +1,6 @@ ++cc_library( ++ name = "tinyobjloader", ++ srcs = ["tiny_obj_loader.cc"], ++ hdrs = ["tiny_obj_loader.h"], ++ visibility = ["//visibility:public"], ++) diff --git a/modules/tinyobjloader/2.0.0-rc1.bcr.1/patches/add_module_dot_bazel.patch b/modules/tinyobjloader/2.0.0-rc1.bcr.1/patches/add_module_dot_bazel.patch new file mode 100644 index 00000000000..6b4af932592 --- /dev/null +++ b/modules/tinyobjloader/2.0.0-rc1.bcr.1/patches/add_module_dot_bazel.patch @@ -0,0 +1,13 @@ +--- MODULE.bazel ++++ MODULE.bazel +@@ -0,0 +1,10 @@ ++module( ++ name = "tinyobjloader", ++ version = "2.0.0-rc1.bcr.1", ++ compatibility_level = 1, ++) ++ ++bazel_dep( ++ name = "platforms", ++ version = "0.0.8", ++) diff --git a/modules/tinyobjloader/2.0.0-rc1.bcr.1/presubmit.yml b/modules/tinyobjloader/2.0.0-rc1.bcr.1/presubmit.yml new file mode 100644 index 00000000000..9665b04241e --- /dev/null +++ b/modules/tinyobjloader/2.0.0-rc1.bcr.1/presubmit.yml @@ -0,0 +1,11 @@ +matrix: + bazel: ["6.x", "7.x"] + platform: ["debian10", "macos", "macos_arm64", "ubuntu2004", "windows"] + +tasks: + verify_targets: + name: Verify build targets + bazel: ${{ bazel }} + platform: ${{ platform }} + build_targets: + - '@tinyobjloader//:tinyobjloader' diff --git a/modules/tinyobjloader/2.0.0-rc1.bcr.1/source.json b/modules/tinyobjloader/2.0.0-rc1.bcr.1/source.json new file mode 100644 index 00000000000..ec1568c4bbf --- /dev/null +++ b/modules/tinyobjloader/2.0.0-rc1.bcr.1/source.json @@ -0,0 +1,10 @@ +{ + "integrity": "sha256-mLDyBsBSKEaX1QYjQT4cZNR8tKBYNuwgFhFVw4xVJAU=", + "patch_strip": 0, + "patches": { + "add_build_dot_bazel.patch": "sha256-aHTTIPCP/fS51ukF4MtkthfoBe7EdpCYexS5j4L5Nj4=", + "add_module_dot_bazel.patch": "sha256-YO6Hk/BvGyEp8NQxA/aIN8tOFJL+UKG6L7+R8RS+7EY=" + }, + "strip_prefix": "tinyobjloader-2.0-rc1", + "url": "https://github.com/tinyobjloader/tinyobjloader/archive/refs/tags/v2.0-rc1.tar.gz" +} diff --git a/modules/tinyobjloader/metadata.json b/modules/tinyobjloader/metadata.json index ef73c96abe0..7af433e0e3c 100644 --- a/modules/tinyobjloader/metadata.json +++ b/modules/tinyobjloader/metadata.json @@ -11,7 +11,8 @@ "github:tinyobjloader/tinyobjloader" ], "versions": [ - "2.0.0-rc1" + "2.0.0-rc1", + "2.0.0-rc1.bcr.1" ], "yanked_versions": {} } diff --git a/modules/toolchain_utils/1.0.0-beta.11/MODULE.bazel b/modules/toolchain_utils/1.0.0-beta.11/MODULE.bazel new file mode 100644 index 00000000000..285f70089c0 --- /dev/null +++ b/modules/toolchain_utils/1.0.0-beta.11/MODULE.bazel @@ -0,0 +1,24 @@ +module( + name = "toolchain_utils", + version = "1.0.0-beta.11", + bazel_compatibility = [ + ">=7.0.0", + ], + compatibility_level = 1, +) + +bazel_dep(name = "bazel_skylib", version = "1.4.2") +bazel_dep(name = "bazel_features", version = "1.13.0") +bazel_dep(name = "platforms", version = "0.0.7") + +triplet = use_repo_rule("//toolchain/local/triplet:defs.bzl", "toolchain_local_triplet") + +triplet( + name = "local", +) + +launcher = use_repo_rule("//toolchain/launcher:repository.bzl", "launcher") + +launcher( + name = "launcher", +) diff --git a/modules/toolchain_utils/1.0.0-beta.11/presubmit.yml b/modules/toolchain_utils/1.0.0-beta.11/presubmit.yml new file mode 100644 index 00000000000..8902f1f38a7 --- /dev/null +++ b/modules/toolchain_utils/1.0.0-beta.11/presubmit.yml @@ -0,0 +1,22 @@ +bcr_test_module: + module_path: e2e + matrix: + bazel: + - 7.x + platform: + - centos7_java11_devtoolset10 + - debian10 + - debian11 + - ubuntu2004 + - ubuntu2204 + - fedora39 + - macos + - macos_arm64 + - windows + tasks: + e2e_tests: + name: Run end-to-end Tests + bazel: ${{ bazel }} + platform: ${{ platform }} + test_targets: + - "//..." diff --git a/modules/toolchain_utils/1.0.0-beta.11/source.json b/modules/toolchain_utils/1.0.0-beta.11/source.json new file mode 100644 index 00000000000..00bc3a10acf --- /dev/null +++ b/modules/toolchain_utils/1.0.0-beta.11/source.json @@ -0,0 +1,5 @@ +{ + "url": "https://gitlab.arm.com/bazel/toolchain_utils/-/releases/v1.0.0-beta.11/downloads/src.tar.gz", + "integrity": "sha512-vcKXtTHOhB1k36cQDL6IVihOFxfSY5QxhoUm9mTGGOvkhp4ZhrCx147I37hS/nTHZ54MppCKpr1ngkEAvmb2EA==", + "strip_prefix": "toolchain_utils-v1.0.0-beta.11" +} diff --git a/modules/toolchain_utils/metadata.json b/modules/toolchain_utils/metadata.json index 4c8fee3b7bb..5475fad827c 100644 --- a/modules/toolchain_utils/metadata.json +++ b/modules/toolchain_utils/metadata.json @@ -11,7 +11,8 @@ "1.0.0-beta.4", "1.0.0-beta.6", "1.0.0-beta.9", - "1.0.0-beta.10" + "1.0.0-beta.10", + "1.0.0-beta.11" ], "maintainers": [ { diff --git a/modules/toolchains_arm_gnu/1.0.2/MODULE.bazel b/modules/toolchains_arm_gnu/1.0.2/MODULE.bazel new file mode 100644 index 00000000000..d45a3bd82aa --- /dev/null +++ b/modules/toolchains_arm_gnu/1.0.2/MODULE.bazel @@ -0,0 +1,37 @@ +"""ARM cross compilation toolchains for bazel""" + +module( + name = "toolchains_arm_gnu", + version = "1.0.2", + compatibility_level = 1, +) + +bazel_dep(name = "platforms", version = "0.0.8") +bazel_dep(name = "rules_cc", version = "0.0.9") +bazel_dep(name = "bazel_skylib", version = "1.5.0") + +# DEV ONLY (not needed for release) +bazel_dep(name = "aspect_bazel_lib", version = "2.0.0", dev_dependency = True) + +arm_toolchain = use_extension( + "@toolchains_arm_gnu//:extensions.bzl", + "arm_toolchain", + dev_dependency = True, +) +arm_toolchain.arm_none_eabi() +use_repo(arm_toolchain, "arm_none_eabi") +arm_toolchain.arm_none_linux_gnueabihf() +use_repo(arm_toolchain, "arm_none_linux_gnueabihf") +arm_toolchain.aarch64_none_elf() +use_repo(arm_toolchain, "aarch64_none_elf") +arm_toolchain.aarch64_none_linux_gnu() +use_repo(arm_toolchain, "aarch64_none_linux_gnu") + +register_toolchains( + "//test/toolchains:all", + "@aarch64_none_elf//toolchain:all", + "@aarch64_none_linux_gnu//toolchain:all", + "@arm_none_eabi//toolchain:all", + "@arm_none_linux_gnueabihf//toolchain:all", + dev_dependency = True, +) diff --git a/modules/toolchains_arm_gnu/1.0.2/patches/module_dot_bazel_version.patch b/modules/toolchains_arm_gnu/1.0.2/patches/module_dot_bazel_version.patch new file mode 100644 index 00000000000..aaf640940a1 --- /dev/null +++ b/modules/toolchains_arm_gnu/1.0.2/patches/module_dot_bazel_version.patch @@ -0,0 +1,14 @@ +=================================================================== +--- a/MODULE.bazel ++++ b/MODULE.bazel +@@ -1,9 +1,9 @@ + """ARM cross compilation toolchains for bazel""" + + module( + name = "toolchains_arm_gnu", +- version = "1.0.0", ++ version = "1.0.2", + compatibility_level = 1, + ) + + bazel_dep(name = "platforms", version = "0.0.8") diff --git a/modules/toolchains_arm_gnu/1.0.2/presubmit.yml b/modules/toolchains_arm_gnu/1.0.2/presubmit.yml new file mode 100644 index 00000000000..a91d03a001c --- /dev/null +++ b/modules/toolchains_arm_gnu/1.0.2/presubmit.yml @@ -0,0 +1,12 @@ +bcr_test_module: + module_path: "examples/bzlmod" + matrix: + platform: ["debian10", "macos", "ubuntu2004"] + bazel: ["7.x", "6.x"] + tasks: + run_tests: + name: "Run test module" + platform: ${{ platform }} + bazel: ${{ bazel }} + test_targets: + - "//..." diff --git a/modules/toolchains_arm_gnu/1.0.2/source.json b/modules/toolchains_arm_gnu/1.0.2/source.json new file mode 100644 index 00000000000..5ed8c1122d8 --- /dev/null +++ b/modules/toolchains_arm_gnu/1.0.2/source.json @@ -0,0 +1,9 @@ +{ + "integrity": "sha256-YuSncCMK689fYtY8bSIdLvWWndMYigzQc+Vc5hpfq1A=", + "strip_prefix": "toolchains_arm_gnu-1.0.2", + "url": "https://github.com/hexdae/toolchains_arm_gnu/releases/download/v1.0.2/toolchains_arm_gnu-v1.0.2.tar.gz", + "patches": { + "module_dot_bazel_version.patch": "sha256-2suB/94Guqf/a2SgubXOWW7drO+LX3Qb30avnNxuAW0=" + }, + "patch_strip": 1 +} diff --git a/modules/toolchains_arm_gnu/metadata.json b/modules/toolchains_arm_gnu/metadata.json index 16fed58c6d1..17093140509 100644 --- a/modules/toolchains_arm_gnu/metadata.json +++ b/modules/toolchains_arm_gnu/metadata.json @@ -1,5 +1,5 @@ { - "homepage": "https://github.com/hexdae/bazel-arm-none-eabi", + "homepage": "https://github.com/hexdae/toolchains_arm_gnu", "maintainers": [ { "name": "Davide Asnaghi", @@ -8,12 +8,14 @@ } ], "repository": [ - "github:hexdae/bazel-arm-none-eabi" + "github:hexdae/bazel-arm-none-eabi", + "github:hexdae/toolchains_arm_gnu" ], "versions": [ "0.0.1", "1.0.0", - "1.0.1" + "1.0.1", + "1.0.2" ], "yanked_versions": {} } diff --git a/modules/with_cfg.bzl/0.2.5/MODULE.bazel b/modules/with_cfg.bzl/0.2.5/MODULE.bazel new file mode 100644 index 00000000000..8b9ed53c730 --- /dev/null +++ b/modules/with_cfg.bzl/0.2.5/MODULE.bazel @@ -0,0 +1,49 @@ +module( + name = "with_cfg.bzl", + version = "0.2.5", + compatibility_level = 1, +) + +bazel_dep(name = "bazel_skylib", version = "1.4.1") + +bazel_dep(name = "aspect_bazel_lib", version = "1.34.0", dev_dependency = True) +bazel_dep(name = "bazel_skylib_gazelle_plugin", version = "1.4.1", dev_dependency = True) +bazel_dep(name = "buildifier_prebuilt", version = "6.1.0", dev_dependency = True) +bazel_dep(name = "gazelle", version = "0.33.0", dev_dependency = True, repo_name = "bazel_gazelle") +bazel_dep(name = "platforms", version = "0.0.6", dev_dependency = True) +bazel_dep(name = "rules_testing", version = "0.4.0", dev_dependency = True) +bazel_dep(name = "stardoc", dev_dependency = True) +git_override( + module_name = "stardoc", + commit = "3baa5d1761970c6285d2ac9c3adccfaac42f54c5", + remote = "https://github.com/bazelbuild/stardoc.git", +) + +bazel_dep(name = "rules_java", version = "7.6.1", dev_dependency = True) +bazel_dep(name = "rules_proto", version = "6.0.0", dev_dependency = True) +bazel_dep(name = "toolchains_protoc", version = "0.3.0", dev_dependency = True) + +protoc = use_extension( + "@toolchains_protoc//protoc:extensions.bzl", + "protoc", + dev_dependency = True, +) +protoc.toolchain( + # Creates a repository to satisfy well-known-types dependencies such as + # deps=["@com_google_protobuf//:any_proto"] + google_protobuf = "com_google_protobuf", + # Pin to any version of protoc + version = "v26.0", +) + +protobuf_java_repos = use_extension( + "//tools:extensions.bzl", + "protobuf_java_repo", + dev_dependency = True, +) +use_repo(protobuf_java_repos, "protobuf_java") + +register_toolchains( + "//docs/...", + dev_dependency = True, +) diff --git a/modules/with_cfg.bzl/0.2.5/patches/module_dot_bazel_version.patch b/modules/with_cfg.bzl/0.2.5/patches/module_dot_bazel_version.patch new file mode 100644 index 00000000000..c3e7cc032fa --- /dev/null +++ b/modules/with_cfg.bzl/0.2.5/patches/module_dot_bazel_version.patch @@ -0,0 +1,12 @@ +=================================================================== +--- a/MODULE.bazel ++++ b/MODULE.bazel +@@ -1,7 +1,7 @@ + module( + name = "with_cfg.bzl", +- version = "0.0.0", ++ version = "0.2.5", + compatibility_level = 1, + ) + + bazel_dep(name = "bazel_skylib", version = "1.4.1") diff --git a/modules/with_cfg.bzl/0.2.5/presubmit.yml b/modules/with_cfg.bzl/0.2.5/presubmit.yml new file mode 100644 index 00000000000..1db2b635ea8 --- /dev/null +++ b/modules/with_cfg.bzl/0.2.5/presubmit.yml @@ -0,0 +1,28 @@ +bcr_test_module: + module_path: "examples" + matrix: + platform: ["debian10", "macos", "ubuntu2004"] + bazel: ["6.x", "7.x"] + tasks: + run_tests: + name: "Run test module" + platform: ${{ platform }} + bazel: ${{ bazel }} + test_targets: + - "//..." + run_windows_tests: + name: "Run test module" + platform: "windows" + bazel: ${{ bazel }} + build_targets: + - "//..." + test_targets: + - "//..." + # Running these tests on Windows requires non-standard Visual Studio + # components and tweaks to PATH. + - "-//cc_asan_test/..." + - "-//cc_asan_test_with_reset/..." + # Fails with: + # LAUNCHER ERROR: Cannot launch process: "C:/tools/msys64/usr/bin/bash.exe + # Reason: (error: 8): Not enough memory resources are available to process this command. + - "-//sh/..." diff --git a/modules/with_cfg.bzl/0.2.5/source.json b/modules/with_cfg.bzl/0.2.5/source.json new file mode 100644 index 00000000000..38f2945794e --- /dev/null +++ b/modules/with_cfg.bzl/0.2.5/source.json @@ -0,0 +1,9 @@ +{ + "integrity": "sha256-EeI9ol2kntKkXkhAD9Nim8hVxmB6nSmdvvd8fzHIgPk=", + "strip_prefix": "with_cfg.bzl-0.2.5", + "url": "https://github.com/fmeum/with_cfg.bzl/releases/download/v0.2.5/with_cfg.bzl-v0.2.5.tar.gz", + "patches": { + "module_dot_bazel_version.patch": "sha256-xpFaN8wzPxniugAXDmZQKtJ16K4LxbMoKUjEkybmoY0=" + }, + "patch_strip": 1 +} diff --git a/modules/with_cfg.bzl/metadata.json b/modules/with_cfg.bzl/metadata.json index 0056bde58dc..1b5e37f2bcf 100644 --- a/modules/with_cfg.bzl/metadata.json +++ b/modules/with_cfg.bzl/metadata.json @@ -16,7 +16,8 @@ "0.2.1", "0.2.2", "0.2.3", - "0.2.4" + "0.2.4", + "0.2.5" ], "yanked_versions": {} } diff --git a/modules/zsync3/0.0.2/MODULE.bazel b/modules/zsync3/0.0.2/MODULE.bazel new file mode 100644 index 00000000000..94f2f9f3e7c --- /dev/null +++ b/modules/zsync3/0.0.2/MODULE.bazel @@ -0,0 +1,8 @@ +module( + name = "zsync3", + version = "0.0.2", +) + +bazel_dep(name = "rules_cc", version = "0.0.9") + +bazel_dep(name = "bazel_skylib", version = "1.5.0", dev_dependency = True) diff --git a/modules/zsync3/0.0.2/presubmit.yml b/modules/zsync3/0.0.2/presubmit.yml new file mode 100644 index 00000000000..29d954827b6 --- /dev/null +++ b/modules/zsync3/0.0.2/presubmit.yml @@ -0,0 +1,10 @@ +bcr_test_module: + module_path: "" + matrix: + platform: [ubuntu2204] + bazel: [6.x, 7.x] + tasks: + run_tests: + platform: ${{ platform }} + bazel: ${{ bazel }} + test_targets: [//...] diff --git a/modules/zsync3/0.0.2/source.json b/modules/zsync3/0.0.2/source.json new file mode 100644 index 00000000000..3ad28c86fd6 --- /dev/null +++ b/modules/zsync3/0.0.2/source.json @@ -0,0 +1,5 @@ +{ + "url": "https://github.com/lalten/zsync/releases/download/v0.0.2/v0.0.2.tar.gz", + "integrity": "sha256-k1uJ0GWXct4Lclch6iCL51f07Xk9XCStv+edjzTQweo=", + "strip_prefix": "zsync-0.0.2" +} diff --git a/modules/zsync3/metadata.json b/modules/zsync3/metadata.json new file mode 100644 index 00000000000..990024ac94e --- /dev/null +++ b/modules/zsync3/metadata.json @@ -0,0 +1,17 @@ +{ + "homepage": "https://github.com/lalten/zsync", + "maintainers": [ + { + "email": "bcr@laure.nz", + "github": "lalten", + "name": "lalten" + } + ], + "repository": [ + "github:lalten/zsync" + ], + "versions": [ + "0.0.2" + ], + "yanked_versions": {} +}