Skip to content

feat(toolchains): record the popili version and registered versions in the hub - #229

Draft
GPLeemrijse wants to merge 1 commit into
fix/generated-headers-across-configurationsfrom
feat/version-registry
Draft

GPLeemrijse wants to merge 1 commit into
fix/generated-headers-across-configurationsfrom
feat/version-registry

Conversation

@GPLeemrijse

Copy link
Copy Markdown
Contributor

First branch of the version-pinning stack. Purely additive: a working build behaves as before.

  • coco_toolchain gains an optional version attribute, exposed on the ToolchainInfo. The generated download toolchains set it to their popili version and the local one to local; a bring-your-own toolchain may leave it empty, meaning unknown.
  • The hub BUILD declares @coco_toolchains//:registry (CocoVersionRegistryInfo with host, has_local and the registered versions) and @coco_toolchains//:registered_versions, a string-list build setting defined by a skylib-free rule so WORKSPACE mode can load the hub before skylib is fetched.
  • coco_toolchain now has a generated docs page, docs/toolchain.md.

Groundwork for the diagnostics, compatibility checks and package self-pin later in the stack.

@GPLeemrijse
GPLeemrijse added this pull request to stack #232 October 16, 2026 14:23
@GPLeemrijse
GPLeemrijse force-pushed the feat/version-registry branch from 3ab31ca to ad47bb5 Compare October 16, 2026 14:39
@GPLeemrijse
GPLeemrijse force-pushed the feat/version-registry branch from ad47bb5 to 4d9628d Compare October 16, 2026 15:01
…n the hub

coco_toolchain gains an optional `version` attribute, exposed on the
ToolchainInfo. The generated download toolchains set it to their popili
version and the local one to "local"; a bring-your-own toolchain may leave it
empty, meaning unknown. The hub BUILD now also declares
@coco_toolchains//:registry (CocoVersionRegistryInfo with host, has_local and
the registered versions) and @coco_toolchains//:registered_versions, a
string-list build setting defined by a skylib-free rule so WORKSPACE mode can
load the hub before skylib is fetched. Purely additive groundwork for the
version-pinning diagnostics, checks and package self-pin.
@GPLeemrijse
GPLeemrijse force-pushed the feat/version-registry branch from 4d9628d to 80a975a Compare October 16, 2026 15:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant