Skip to content

starlark: pins.json and dx_pins extension; ruby and powershell first (part of #10144) - #10152

Draft
TrapsterDK wants to merge 1 commit into
toolchain-factory-10065from
dx-pins-10144
Draft

TrapsterDK wants to merge 1 commit into
toolchain-factory-10065from
dx-pins-10144

Conversation

@TrapsterDK

Copy link
Copy Markdown
Collaborator

Part of #10144. Stacked on #10134 (base toolchain-factory-10065); retarget to main once it merges.

Changed:

  • dx_pins extension in libs/starlark/toolchain.bzl with a pin tag (name, pins, build, toolchain_type, aliases): per-cell repos plus a toolchain hub, or one host-selected repo when no toolchain_type. Also exposes @dx_pins_data//:pins.bzl for tests.
  • ruby (sorbet gems, windows stub) and powershell move to ruby/toolchain/pins.json and powershell/toolchain/pins.json; their pins.bzl and powershell repos.bzl are deleted. Powershell cells were already host-cell names.
  • //libs/starlark:pins_test runs pin_checks over every pins.json; per-language tests keep their own checks.

Remaining:

  • swift: no swift/toolchain/pins.bzl exists; swift-format needs a ghcr bearer token the archive rule cannot send.
  • ruby and powershell keep a small extension each for the patched rules_ruby / rules_powershell archives.
  • pins.json lives under /toolchain/ (powershell/ is not a package).

Tested: bazel test //libs/starlark:pins_test //libs/starlark/tests:cells //libs/starlark/tests:toolchain //ruby/toolchain:metadata //powershell/toolchain:metadata pass; @dx_sorbet and pwsh repos fetch, sorbet runs. Nested-Bazel and consumer tests were not run.

🤖 Generated with Claude Code

https://claude.ai/code/session_01Xut2hwESun1HL2eSVd1d5B

This branch has not been deployed

No deployments
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