Repository navigation
api: extract elixir, erlang and ocaml defs.bzl into starlark.json (part of #13178) - #14005
Merged
Merged
Conversation
…rt of #13178, part of #13817) dx_pins.archive gains bzl_srcs: the archive rule adds a public dx_bzl_srcs filegroup to each package that holds .bzl files, and the root one gathers them all, so starlark_doc_extract can follow loads into rules_elixir, rules_erlang and rules_ocaml. A rules_ocaml patch lets ocaml/_rules load under allow_empty = False. Regenerating the snapshot also records provider fields that main had already changed. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Xut2hyrMhpvYiaXtbch78d
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Pull Request
Linked Issue
Changes
dx_pins.archivegets abzl_srcsattr. When it is set, the archive rule adds a publicdx_bzl_srcsfilegroup to each package that has.bzlfiles, and the root filegroup collects all of them. Set onrules_elixir,rules_erlangandrules_ocaml.tools/api:elixir/defs.bzl,erlang/defs.bzlandocaml/defs.bzlare now extracted (80 of 93 public files). New deps: the three@<repo>//:dx_bzl_srcstargets and@bazel_skylib//rules:copy_file.patches/rules_ocaml/empty_glob.patch:ocaml/_rulesfailed to load because itsppx*.bzlglobs match nothing and Bazel's default isallow_empty = False. The patch addsallow_empty = True. The upstream repo has been inactive since Mar 2025, so this is not filed upstream.api/starlark.jsonanddocs/supported-surface.md. Besides the 3 new files and the newbzl_srcstag attr, this also brings in drift already on main: new provider fields in capnproto, flatbuffers and thrift, and the removed//cli/hpc_coverage:hpc_coverage.Verification
tools/dx check --applyon the touched files: exit 0. It also rewrote the rootBUILD.bazelsort order; I reverted that.Tested:
//tools/api:api_test,//patches:headers_test,//patches:update_readme_test,//patches:upstream_unit_test,//ocaml/tests/runtime:all,//erlang/tests/runtime:all,//elixir/tests:all,//core/tests:all. All 55 tests passed. The three new//tools/api:doc_{elixir,erlang,ocaml}_defsextracts build.Not run:
--affected(cloud container, touched packages only) and the elixir conformance suite.This touches
MODULE.bazel, which is a review path, so the PR needsneeds-review.Generated by Claude Code