Skip to content

build: update bazel dependencies (21.2.x)#33103

Open
angular-robot wants to merge 1 commit intoangular:21.2.xfrom
angular-robot:ng-renovate/21.2.x-bazel-dependencies
Open

build: update bazel dependencies (21.2.x)#33103
angular-robot wants to merge 1 commit intoangular:21.2.xfrom
angular-robot:ng-renovate/21.2.x-bazel-dependencies

Conversation

@angular-robot
Copy link
Copy Markdown
Contributor

@angular-robot angular-robot commented Apr 30, 2026

This PR contains the following updates:

Package Type Update Change
aspect_rules_ts bazel_dep patch 3.8.83.8.9
bazel_lib bazel_dep minor 3.2.23.3.1
platforms bazel_dep minor 1.0.01.1.0
rules_cc bazel_dep patch 0.2.170.2.18
rules_nodejs bazel_dep patch 6.7.36.7.4
yq.bzl bazel_dep patch 0.3.50.3.6

  • If you want to rebase/retry this PR, check this box

Release Notes

aspect-build/rules_ts (aspect_rules_ts)

v3.8.9

Using Bzlmod:

Add to your MODULE.bazel file:

bazel_dep(name = "aspect_rules_ts", version = "3.8.9")

rules_ts_ext = use_extension("@​aspect_rules_ts//ts:extensions.bzl", "ext", dev_dependency = True)

rules_ts_ext.deps(
    ts_version_from = "//:package.json",
)

use_repo(rules_ts_ext, "npm_typescript")

Using legacy WORKSPACE

Paste this snippet into your WORKSPACE file:

load("@​bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
http_archive(
    name = "aspect_rules_ts",
    sha256 = "22cf7587326b56e61de5c8db359bfa460c86e1016dc8d8fa59c9f28ca10e2053",
    strip_prefix = "rules_ts-3.8.9",
    url = "https://github.com/aspect-build/rules_ts/releases/download/v3.8.9/rules_ts-v3.8.9.tar.gz",
)

##################

# rules_ts setup #
##################

# Fetches the rules_ts dependencies.
# If you want to have a different version of some dependency,

# you should fetch it *before* calling this.
# Alternatively, you can skip calling this function, so long as you've

# already fetched all the dependencies.
load("@​aspect_rules_ts//ts:repositories.bzl", "rules_ts_dependencies")

rules_ts_dependencies(
    # This keeps the TypeScript version in-sync with the editor, which is typically best.
    ts_version_from = "//:package.json",

    # Alternatively, you could pick a specific version, or use
    # load("@​aspect_rules_ts//ts:repositories.bzl", "LATEST_TYPESCRIPT_VERSION")
    # ts_version = LATEST_TYPESCRIPT_VERSION
)

load("@​aspect_rules_js//js:repositories.bzl", "rules_js_dependencies")

rules_js_dependencies()

load("@​aspect_rules_js//js:toolchains.bzl", "DEFAULT_NODE_VERSION", "rules_js_register_toolchains")

rules_js_register_toolchains(node_version = DEFAULT_NODE_VERSION)

load("@​aspect_rules_js//npm:repositories.bzl", "npm_translate_lock")

npm_translate_lock(
    name = "npm",
    npmrc = "//:.npmrc",
    pnpm_lock = "//:pnpm-lock.yaml",
    verify_node_modules_ignored = "//:.bazelignore",
)

load("@​npm//:repositories.bzl", "npm_repositories")

npm_repositories()

# Register aspect_bazel_lib toolchains;

# If you use npm_translate_lock or npm_import from aspect_rules_js you can omit this block.
load("@​aspect_bazel_lib//lib:repositories.bzl", "aspect_bazel_lib_dependencies")

aspect_bazel_lib_dependencies()

To use rules_ts with bazel-lib 2.x, you must additionally register the coreutils toolchain.

load("@​aspect_bazel_lib//lib:repositories.bzl", "register_coreutils_toolchains")

register_coreutils_toolchains()

What's Changed

New Contributors

Full Changelog: aspect-build/rules_ts@v3.8.8...v3.8.9

bazelbuild/platforms (platforms)

v1.1.0

Compare Source

What's Changed

New Contributors

WORKSPACE setup

load("@​bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
http_archive(
    name = "platforms",
    urls = [
        "https://mirror.bazel.build/github.com/bazelbuild/platforms/releases/download/1.1.0/platforms-1.1.0.tar.gz",
        "https://github.com/bazelbuild/platforms/releases/download/1.1.0/platforms-1.1.0.tar.gz",
    ],
    sha256 = "dbad4a23abcca6171e47b79edc53bd6a41067a3b75f9e8b104656b459ff25046",
)

Full Changelog: bazelbuild/platforms@1.0.0...1.1.0

bazelbuild/rules_cc (rules_cc)

v0.2.18

Compare Source

Using bzlmod with Bazel 6 or later:

  1. [Bazel 6] Add common --enable_bzlmod to .bazelrc.

  2. Add to your MODULE.bazel file:

bazel_dep(name = "rules_cc", version = "0.2.18")

Using WORKSPACE:

load("@​bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")

http_archive(
    name = "rules_cc",
    sha256 = "1de5b47721fce0af0dd453b3071228fdfc44bd18199826b3f0b03b423aae9f65",
    strip_prefix = "rules_cc-0.2.18",
    url = "https://github.com/bazelbuild/rules_cc/releases/download/0.2.18/rules_cc-0.2.18.tar.gz",
)

load("@​rules_cc//cc:extensions.bzl", "compatibility_proxy_repo")

compatibility_proxy_repo()

Full Changelog: bazelbuild/rules_cc@0.2.17...0.2.18

bazel-contrib/rules_nodejs (rules_nodejs)

v6.7.4

Using Bzlmod with Bazel 6 or greater

  1. (Bazel 6 only) Enable with common --enable_bzlmod in .bazelrc.
  2. Add to your MODULE.bazel file:
bazel_dep(name = "rules_nodejs", version = "6.7.4")

Using WORKSPACE

Paste this snippet into your WORKSPACE.bazel file:

load("@​bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
http_archive(
    name = "rules_nodejs",
    sha256 = "dadafd3a3b15e0df47db7e71a32af53952b7dbb41e81367d88a2ec2d899a4995",
    strip_prefix = "rules_nodejs-6.7.4",
    url = "https://github.com/bazel-contrib/rules_nodejs/releases/download/v6.7.4/rules_nodejs-v6.7.4.tar.gz",
)

What's Changed

New Contributors

Full Changelog: bazel-contrib/rules_nodejs@v6.7.3...v6.7.4

bazel-contrib/yq.bzl (yq.bzl)

v0.3.6

Using Bzlmod

Add to your MODULE.bazel file:

bazel_dep(name = "yq.bzl", version = "0.3.6")

What's Changed

New Contributors

Full Changelog: bazel-contrib/yq.bzl@v0.3.5...v0.3.6

@angular-robot angular-robot added action: merge The PR is ready for merge by the caretaker area: build & ci Related the build and CI infrastructure of the project target: automation This PR is targeted to only merge into the branch defined in Github [bot use only] labels Apr 30, 2026
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 yq.bzl, rules_nodejs, rules_cc, and bazel_lib, to newer versions and updates the lock file accordingly. Feedback was provided regarding an inconsistency in the MODULE.bazel.lock file, where entries for older versions of bazel_features and bazel_lib were only partially removed, leaving the lock file in a potentially unstable state. It is recommended to run bazel mod tidy to clean up these orphaned entries.

Comment thread MODULE.bazel.lock
@angular-robot angular-robot force-pushed the ng-renovate/21.2.x-bazel-dependencies branch 3 times, most recently from 4970663 to 078cb0c Compare May 1, 2026 20:38
See associated pull request for more information.
@angular-robot angular-robot force-pushed the ng-renovate/21.2.x-bazel-dependencies branch from 078cb0c to c30fd6f Compare May 4, 2026 12:19
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: automation This PR is targeted to only merge into the branch defined in Github [bot use only]

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants