Repository navigation
api: extract scala/defs.bzl into starlark.json (closes #14030) - #14035
Merged
Merged
Conversation
Root-only patches/rules_scala/dx_bzl_srcs.patch adds public dx_bzl_srcs filegroups to the rules_scala packages in the defs.bzl load closure and to the generated @rules_scala_config repo; tools/api uses them as extract deps. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Xut2hvgPbKqbuDgsTasg7K
10 of 11 tasks
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.
Closes #14030
patches/rules_scala/dx_bzl_srcs.patch(root only,Upstream: bazel-contrib/rules_scala#2055): publicdx_bzl_srcsfilegroups (glob(["**/*.bzl"])) in//scala,//scala/private,//scala/private/toolchain_deps,//specs2, and one forconfig.bzlin the generated@rules_scala_configrepo. Registered inMODULE.bazel,exports_filesandpatches/README.md.tools/api/BUILD.bazel://scala:defs.bzlmoves from_NOT_EXTRACTEDto_STARLARK_SRCS; the five targets join_UPSTREAM_BZL.api/starlark.jsonanddocs/supported-surface.md(no private rules_scala labels in defaults). No lockfile change.Upstream issue/PR already exist (bazel-contrib/rules_scala#1811, #2055), so none opened.
Tests run locally:
bazel build //tools/api:doc_scala_defs: passbazel test //tools/api:api_test //patches:headers_test //patches:readme_generated: 2/2 passtools/dx check --apply --affected: generate phase fails withunresolved import "github.com/bazelbuild/rules_go/go/runfiles"ingo/private/tools/gofumpt, a file this PR does not touch; format/lint/typecheck were skipped as a result.Not run locally: nested-Bazel and consumer tests (CI runs them).
🤖 Generated with Claude Code
https://claude.ai/code/session_01Xut2hvgPbKqbuDgsTasg7K