Skip to content

build: update bazel dependencies#32983

Merged
alan-agius4 merged 1 commit intoangular:21.2.xfrom
alan-agius4:clean-up-mod-patch
Apr 10, 2026
Merged

build: update bazel dependencies#32983
alan-agius4 merged 1 commit intoangular:21.2.xfrom
alan-agius4:clean-up-mod-patch

Conversation

@alan-agius4
Copy link
Copy Markdown
Collaborator

  • Update rules_angular to 46fdabe25ad865093d1be752c778ca4d81f222f5
  • Update devinfra to 583cd52fbbadae28ca7a4dd55d63978a984c371a
  • Update rules_browsers to dc3e432662fe9f99eb7f030a35a22d4ff77d54c7
  • Remove unused rules_sass dependency

- Update `rules_angular` to `46fdabe25ad865093d1be752c778ca4d81f222f5`
- Update `devinfra` to `583cd52fbbadae28ca7a4dd55d63978a984c371a`
- Update `rules_browsers` to `dc3e432662fe9f99eb7f030a35a22d4ff77d54c7`
- Remove unused `rules_sass` dependency
@alan-agius4 alan-agius4 added action: review The PR is still awaiting reviews from at least one requested reviewer target: patch This PR is targeted for the next patch release labels Apr 10, 2026
@angular-robot angular-robot Bot added the area: build & ci Related the build and CI infrastructure of the project label Apr 10, 2026
@alan-agius4 alan-agius4 added action: merge The PR is ready for merge by the caretaker and removed action: review The PR is still awaiting reviews from at least one requested reviewer labels Apr 10, 2026
Copy link
Copy Markdown
Member

@josephperrott josephperrott left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Copy link
Copy Markdown

@gemini-code-assist gemini-code-assist Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request updates several Bazel dependencies, including rules_angular, devinfra, and rules_browsers, while removing rules_sass. It also updates the TypeScript version to 6.0.2 in the lock file. I have identified an inconsistency where the MODULE.bazel file still references the older TypeScript version, and there is a noted duplication in the generated configurable dependencies for rules_angular that should be addressed to ensure a cleaner configuration.

Comment thread MODULE.bazel.lock
Comment on lines +458 to +459
"version": "6.0.2",
"integrity": "sha512-bGdAIrZ0wiGDo5l8c++HWtbaNCWTS4UTv7RaTH/ThVIgjkveJt83m74bBHMJkuCbslY8ixgLBVZJIOiQlQTjfQ==",
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

high

The version of npm_typescript is updated to 6.0.2 here, which is likely due to the dependency updates. However, MODULE.bazel (lines 163-169) explicitly defines and aliases @npm_typescript to use version 5.9.3. This creates an inconsistency between the declared intent and the resolved dependency.

To resolve this, please update the ts_version and ts_integrity in MODULE.bazel to match version 6.0.2 if this is the new intended version. This will make the configuration file consistent with the lock file.

Comment thread MODULE.bazel
Comment on lines 172 to +177
rules_angular.setup(
name = "components_rules_angular_configurable_deps",
name = "angular_cli_rules_angular_configurable_deps",
angular_compiler_cli = "//:node_modules/@angular/compiler-cli",
typescript = "//:node_modules/typescript",
)
use_repo(rules_angular, **{"rules_angular_configurable_deps": "components_rules_angular_configurable_deps"})
use_repo(rules_angular, **{"rules_angular_configurable_deps": "angular_cli_rules_angular_configurable_deps"})
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

medium

The lock file indicates that both angular_cli_rules_angular_configurable_deps (defined here) and rules_angular_configurable_deps are being generated with identical configurations. The latter is likely coming from a transitive dependency. This duplication is inefficient.

Could you investigate if the generation of the rules_angular_configurable_deps repository can be prevented? This would ensure a single, consistent setup for rules_angular across the project.

@alan-agius4 alan-agius4 merged commit ded5252 into angular:21.2.x Apr 10, 2026
39 checks passed
@alan-agius4
Copy link
Copy Markdown
Collaborator Author

This PR was merged into the repository. The changes were merged into the following branches:

@alan-agius4 alan-agius4 deleted the clean-up-mod-patch branch April 10, 2026 17:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

action: merge The PR is ready for merge by the caretaker area: build & ci Related the build and CI infrastructure of the project target: patch This PR is targeted for the next patch release

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants