Skip to content
ocx
install

ocx_package_hub

load("@rules_ocx//ocx:defs.bzl", "ocx_package_hub")

ocx_package_hub(name, bins, platform_reals, platform_repos)

Multi-platform hub for an ocx.package() with platforms.

//:content (or, with bins, each named launcher) select()s the per-platform package repo matching the target platform — combine with a platform transition to fetch foreign-platform tools (e.g. for container images).

ATTRIBUTES

Name Description Type Mandatory Default
name A unique name for this repository. Name required
bins Lazy mode: launcher names to alias instead of //:content. List of strings optional []
platform_reals repo slug -> real ocx platform, the source of each config_setting’s Bazel constraint_values. Dictionary: String -> String required
platform_repos repo slug -> apparent name of the per-platform package repo. Dictionary: String -> String required