Skip to content

extensions: 13 module extensions live in repos.bzl, the rest in extensions.bzl #9870

Closed

Description

@TrapsterDK

Where

Module extensions are declared in two different files:

  • extensions.bzl: ansible/, appimage/, bicep/, d/dub/, elixir/toolchain/, haskell/toolchain/, ocaml/toolchain/, powershell/toolchain/, qt/sdk/, terraform/, perl/cpan/, php/composer/, families/android/sdk/, families/msix/
  • repos.bzl (repo rules and the extension in one file): d/toolchain/repos.bzl:358, dart/repos.bzl:16, dotnet/repos.bzl:30, erlang/toolchain/repos.bzl:408, fortran/toolchain/repos.bzl:165, lua/toolchain/repos.bzl:63, php/toolchain/repos.bzl:157, ruby/toolchain/repos.bzl:79, swift/toolchain/repos.bzl:34, typescript/playwright/repos.bzl:97, families/cuda/toolchain/repos.bzl:27, cc/toolchains/repos.bzl:53, cc/toolchains/msvc/repos.bzl:102
  • ruby/coverage/repos.bzl:77 and python/rules/sdist_cargo_vendor.bzl:156 are odd one-offs.

Fix

  • Rule: extensions.bzl holds the module_extension, repos.bzl holds repository rules and BUILD text.
  • Move the 13 repos.bzl extensions into a sibling extensions.bzl; update the use_extension labels in MODULE.bazel and families/*/MODULE.bazel.
  • Add a check that no repos.bzl calls module_extension(.

🤖 Generated with Claude Code

https://claude.ai/code/session_01Xut2hwESun1HL2eSVd1d5B

Activity

  1. added
    P2
    model:haiku
    on Nov 9, 2026
  2. added 4 commits that reference this issue on Nov 9, 2026
    25c1e28
    5cd9500
    41070b9
    3bc7284
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:haiku

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions