Skip to content

build: update bazel dependencies (main)#32860

Merged
tjshiu merged 1 commit intoangular:mainfrom
angular-robot:ng-renovate/main-bazel-dependencies
Mar 5, 2026
Merged

build: update bazel dependencies (main)#32860
tjshiu merged 1 commit intoangular:mainfrom
angular-robot:ng-renovate/main-bazel-dependencies

Conversation

@angular-robot
Copy link
Contributor

@angular-robot angular-robot commented Feb 26, 2026

This PR contains the following updates:

Package Type Update Change
aspect_rules_jasmine bazel_dep patch 2.0.22.0.4
aspect_rules_ts bazel_dep patch 3.8.43.8.5
rules_browsers git_override digest ceb52758231142
tar.bzl bazel_dep minor 0.8.10.9.0
yq.bzl bazel_dep patch 0.3.40.3.5

Release Notes

aspect-build/rules_ts (aspect_rules_ts)

v3.8.5

Using Bzlmod:

Add to your MODULE.bazel file:

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

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 = "28d14dcf81d6b9ec263f75be405011584ea06ab12e8261557129f8a3c026d15f",
    strip_prefix = "rules_ts-3.8.5",
    url = "https://github.com/aspect-build/rules_ts/releases/download/v3.8.5/rules_ts-v3.8.5.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

Full Changelog: aspect-build/rules_ts@v3.8.4...v3.8.5

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

v0.9.0

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 = "tar.bzl", version = "0.9.0")

Using WORKSPACE

Paste this snippet into your WORKSPACE.bazel file:

load("@​bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
http_archive(
    name = "tar.bzl",
    sha256 = "4bd59d41aac03b6c4cf3f6acd8c1c50355a19d2887a140e793da54d40e116913",
    strip_prefix = "tar.bzl-0.9.0",
    url = "https://github.com/bazel-contrib/tar.bzl/releases/download/v0.9.0/tar.bzl-v0.9.0.tar.gz",
)
load("@​bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")

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

# tar.bzl dependencies #
######################
http_archive(
    name = "bazel_skylib",
    sha256 = "bc283cdfcd526a52c3201279cda4bc298652efa898b10b4db0837dc51652756f",
    urls = [
        "https://github.com/bazelbuild/bazel-skylib/releases/download/1.7.1/bazel-skylib-1.7.1.tar.gz",
        "https://mirror.bazel.build/github.com/bazelbuild/bazel-skylib/releases/download/1.7.1/bazel-skylib-1.7.1.tar.gz",
    ],
)

http_archive(
    name = "aspect_bazel_lib",
    sha256 = "db7da732db4dece80cd6d368220930950c9306ff356ebba46498fe64e65a3945",
    strip_prefix = "bazel-lib-2.19.3",
    url = "https://github.com/bazel-contrib/bazel-lib/releases/download/v2.19.3/bazel-lib-v2.19.3.tar.gz",
)

http_archive(
    name = "bazel_lib",
    sha256 = "6fd3b1e1a38ca744f9664be4627ced80895c7d2ee353891c172f1ab61309c933",
    strip_prefix = "bazel-lib-3.0.0",
    url = "https://github.com/bazel-contrib/bazel-lib/releases/download/v3.0.0/bazel-lib-v3.0.0.tar.gz",
)

# Back-port https://github.com/bazelbuild/bazel-central-registry/blob/main/modules/gawk/5.3.2.bcr.1/source.json

# to WORKSPACE semantics
http_archive(
    name = "gawk",
    integrity = "sha256-+MNIZQnecFGSE4sA7ywAu73Q6Eww1cB9I/xzqdxMycw=",
    remote_file_integrity = {
        "BUILD.bazel": "sha256-dt89+9IJ3UzQvoKzyXOiBoF6ok/4u4G0cb0Ja+plFy0=",
        "posix/config_darwin.h": "sha256-gPVRlvtdXPw4Ikwd5S89wPPw5AaiB2HTHa1KOtj40mU=",
        "posix/config_linux.h": "sha256-iEaeXYBUCvprsIEEi5ipwqt0JV8d73+rLgoBYTegC6Q=",
    },
    remote_file_urls = {
        f: ["https://raw.githubusercontent.com/bazelbuild/bazel-central-registry/refs/heads/main/modules/gawk/5.3.2.bcr.1/overlay/" + f]
        for f in [
            "BUILD.bazel",
            "posix/config_darwin.h",
            "posix/config_linux.h",
        ]
    },
    strip_prefix = "gawk-5.3.2",
    urls = ["https://ftpmirror.gnu.org/gnu/gawk/gawk-5.3.2.tar.xz"],
)

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

# setup #
######################

load("@​tar.bzl//tar:extensions.bzl", "create_repositories")

create_repositories()

register_toolchains("@​bsd_tar_toolchains//:all")

load("@​bazel_lib//lib:repositories.bzl", "bazel_lib_dependencies", "bazel_lib_register_toolchains")

bazel_lib_dependencies()

bazel_lib_register_toolchains()

load("@​bazel_tools//tools/build_defs/repo:utils.bzl", "maybe")
load("@​platforms//host:extension.bzl", "host_platform_repo")

maybe(
    host_platform_repo,
    name = "host_platform",
)

What's Changed

New Contributors

Full Changelog: bazel-contrib/tar.bzl@v0.8.0...v0.9.0

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

v0.3.5

Using Bzlmod

Add to your MODULE.bazel file:

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

What's Changed

New Contributors

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


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

@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 Feb 26, 2026
@pullapprove pullapprove bot requested review from adolgachev and ok7sai February 26, 2026 06:23
@angular-robot angular-robot force-pushed the ng-renovate/main-bazel-dependencies branch from e1744a0 to 9636a39 Compare March 3, 2026 22:19
@pullapprove pullapprove bot requested review from adolgachev and ok7sai March 4, 2026 06:16
@alan-agius4 alan-agius4 requested review from alan-agius4 and removed request for adolgachev, alan-agius4 and ok7sai March 4, 2026 08:31
See associated pull request for more information.
@angular-robot angular-robot force-pushed the ng-renovate/main-bazel-dependencies branch from 9636a39 to 38d4717 Compare March 5, 2026 00:19
@tjshiu tjshiu merged commit 00844db into angular:main Mar 5, 2026
24 checks passed
@tjshiu
Copy link
Contributor

tjshiu commented Mar 5, 2026

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

@angular-robot angular-robot deleted the ng-renovate/main-bazel-dependencies branch March 5, 2026 00:58
jermowery pushed a commit to jermowery/components that referenced this pull request Mar 13, 2026
See associated pull request for more information.
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 PullApprove: disable 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.

3 participants