Skip to content

libs/starlark: one pinned-binary module extension fed by pins tables #10065

Closed

Description

@TrapsterDK

22 pins.bzl and 20 metadata_tests.bzl files; ~15 */repos.bzl (16-638 lines) each hand-write a module_extension that picks a host cell and builds a hub, though libs/starlark/repo.bzl already has pinned_archive and hub_repo.

End state:

🤖 Generated with Claude Code

https://claude.ai/code/session_01Xut2hwESun1HL2eSVd1d5B

Activity

  1. added
    P2
    model:opus
    on Nov 9, 2026
  2. TrapsterDK commented on Nov 9, 2026

    @TrapsterDK
    CollaboratorAuthor

    Scope addition: make it a full pinned-toolchain factory in libs/starlark/toolchain.bzl. 23 pins.bzl, 18 def hub_build, 8 hand-written _TOOLCHAIN = """toolchain( templates (d, elixir, erlang, fortran, haskell, ocaml, php, powershell), and 20 metadata_tests.bzl repeating the sha256 and hub-loads-nothing checks. The factory emits repos, hub, toolchain() targets and the generic checks; languages keep only their own checks.

    🤖 Generated with Claude Code

    https://claude.ai/code/session_01Xut2hwESun1HL2eSVd1d5B

  3. TrapsterDK commented on Nov 9, 2026

    @TrapsterDK
    CollaboratorAuthor

    Part of #10084: pins live in <lang>/pins.json, read by the shared extension with json.decode; dx update rewrites them.

    🤖 Generated with Claude Code

    https://claude.ai/code/session_01Xut2hwESun1HL2eSVd1d5B

  4. 32 remaining items

  5. TrapsterDK commented on Nov 17, 2026

    @TrapsterDK
    CollaboratorAuthor

    PR #13103 moves the OCaml hub to core pins_hub (adds variants, companion_types, dict exec_aliases with alias_defaults; cell repos dx_ocaml_toolchains__). Remaining:

    • Toolchain hubs of elixir (one dist shared across OTP cells) and haskell (qualified/musl cells) to the factory.
    • D cell repos still use ldc_repo; dx_pins.pin needs custom fetch support.
    • msix, appimage, cuda, cosign factory support.
    • Merge dx_source_archives into dx_pins.archive; teach dx update the archives shape.
    • Shared metadata test.
  6. TrapsterDK commented on Nov 17, 2026

    @TrapsterDK
    CollaboratorAuthor

    Rework audit: the per-cell _TOOLCHAIN template is copied in 9 files (e.g. d/toolchain/repos.bzl:218, erlang/toolchain/repos.bzl:121, powershell/toolchain/repos.bzl:32) and 18 hub_build functions follow the same pattern. One shared helper should emit both.

    Line numbers are from origin/main 2a98204; check them first.

  7. TrapsterDK commented on Nov 18, 2026

    @TrapsterDK
    CollaboratorAuthor

    PR #13402 moves the Elixir hub to core pins_hub (adds repository so all OTP cells share the one dx_elixir dist). Remaining:

    • Haskell hub (qualified/musl cells) to the factory.
    • D cell repos still use ldc_repo; dx_pins.pin needs custom fetch support.
    • msix, appimage, cuda, cosign factory support.
    • Merge dx_source_archives into dx_pins.archive; teach dx update the archives shape.
    • Shared metadata test.

    🤖 Generated with Claude Code

    https://claude.ai/code/session_01Xut2hvgPbKqbuDgsTasg7K

  8. TrapsterDK commented on Nov 18, 2026

    @TrapsterDK
    CollaboratorAuthor

    PR #13466 moves the Haskell hub to core pins_hub (adds target, target_settings, cell_constraints; cell repos dx_haskell_toolchains__). Remaining:

    • D cell repos still use ldc_repo; dx_pins.pin needs custom fetch support.
    • msix, appimage, cuda, cosign factory support.
    • Merge dx_source_archives into dx_pins.archive; teach dx update the archives shape.
    • Shared metadata test.
  9. TrapsterDK commented on Nov 18, 2026

    @TrapsterDK
    CollaboratorAuthor

    PR #13484 folds dx_source_archives into dx_pins.archive (flatbuffers, capnproto, thrift; capnproto sed becomes a patch). Remaining:

    • D cell repos still use ldc_repo; dx_pins.pin needs custom fetch support.
    • msix, appimage, cuda, cosign factory support.
    • Teach dx update the archives shape.
    • Shared metadata test.
  10. TrapsterDK commented on Nov 19, 2026

    @TrapsterDK
    CollaboratorAuthor

    PR #13979 teaches dx update the archives shape (pins:<path>#<archive>). Next slice: D cell repos off ldc_repo (custom fetch in dx_pins.pin), then msix/appimage/cuda/cosign factory support, then the shared metadata test.


    Generated by Claude Code

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    P2model:opus

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions