Mercurial
view mrjunejune/inference/python_zip.bzl @ 268:f7b1188d5fb1
support repo rules Copilot bundle path
Match both +_repo_rules2+ and +http_archive+ Copilot CLI repository layouts during deployment and production startup.
Co-authored-by: Copilot <[email protected]>
| author | MrJuneJune <me@mrjunejune.com> |
|---|---|
| date | Fri, 07 Aug 2026 13:02:41 -0700 |
| parents | 1f9877b637e9 |
| children |
line wrap: on
line source
def _python_zip_file_impl(ctx): files = ctx.attr.binary[OutputGroupInfo].python_zip_file return DefaultInfo( files = files, runfiles = ctx.runfiles(files = files.to_list()), ) python_zip_file = rule( implementation = _python_zip_file_impl, attrs = { "binary": attr.label( mandatory = True, providers = [OutputGroupInfo], ), }, )