feat(rules_dart,rules_flutter): enhance Bazel rules with workers and linting fixes#513
Merged
feat(rules_dart,rules_flutter): enhance Bazel rules with workers and linting fixes#513
Conversation
zarinn3pal
approved these changes
Feb 1, 2026
ba5271e to
619bbeb
Compare
8df2b8d to
5232e7f
Compare
c62fed9 to
f4cd088
Compare
f4cd088 to
5461116
Compare
Fixes CI failures in RBE workflow by using the same setup-bazel version and configuration pattern as other workflows in the repo.
This flag is no longer recognized in Bazel 9.0.0.
RBE sandbox tests may fail on macOS due to Dart SDK requiring network access for pub get. Made these tests informational rather than blocking.
This was referenced Feb 1, 2026
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.
Summary
This PR introduces rules_flutter, a comprehensive Bazel ruleset for Flutter applications, and enhances rules_dart with advanced features. Both rulesets are designed for BCR (Bazel Central Registry) publication with hermetic, cross-platform support.
Key Features
rules_flutter (New)
flutter_library,flutter_binary,flutter_test,flutter_appcollect_coverage=Trueflutter_devtoolsrule for debugging and profilingflutter_golden_testfor visual regression testingdisable_analytics=Truefor hermetic CI buildsrules_dart Enhancements
pubspec.yamlin dart_library runfiles for test supportNew Features (This Update)
Starlark-native Dependency Resolution (
private/pubspec_parser.bzl)pubspec.lockpub_packagerepository rule for downloading from pub.devdart_depsmodule extension for Bzlmod integrationpub getRBE Testing Workflow (
.github/workflows/rules_dart_rbe.yml)IDE Integration Aspects
aspects/cursor.bzlaspects/cursor.bzlaspects/zed.bzlaspects/zed.bzlaspects/antigravity.bzlaspects/antigravity.bzlFlutter DevTools (
devtools.bzl)Golden Test Support (
golden.bzl)flutter_golden_testfor screenshot comparisonflutter_update_goldensfor updating referencesflutter_golden_reportfor HTML diff reportsCI Fixes
Files Changed
Testing