From cfa0591c8bbd25ea759ee197e82540d07fd6a00d Mon Sep 17 00:00:00 2001 From: Joey Perrott Date: Wed, 30 Apr 2025 15:33:13 +0000 Subject: [PATCH] build: update to bazel 6 (#61087) This is necessary for an incremental migration to `rules_js` which requires Bazel v6. Bazel v6 removed the managed directories feature, which means we no longer can rely on symlinked node modules as the Bazel repository; but rather need to duplicate dependencies. This is okay/acceptable to enable the incremental migration. PR Close #61087 --- .bazelrc | 2 +- .bazelversion | 2 +- WORKSPACE | 6 ------ 3 files changed, 2 insertions(+), 8 deletions(-) diff --git a/.bazelrc b/.bazelrc index 2547366efb7..d137ebf8e67 100644 --- a/.bazelrc +++ b/.bazelrc @@ -115,7 +115,7 @@ build:remote --remote_cache=remotebuildexecution.googleapis.com build:remote --remote_executor=remotebuildexecution.googleapis.com build:remote --remote_upload_local_results=false -build:remote --experimental_remote_grpc_log=/tmp/rbe-grpc.log +build:remote --remote_grpc_log=/tmp/rbe-grpc.log # See: https://docs.google.com/document/d/1NgDPsCIwprDdqC1zj0qQrh5KGK2hQTSTux1DAvi4rSc/edit?tab=t.0. build:remote --experimental_remote_execution_keepalive diff --git a/.bazelversion b/.bazelversion index 0062ac97180..f22d756da39 100644 --- a/.bazelversion +++ b/.bazelversion @@ -1 +1 @@ -5.0.0 +6.5.0 diff --git a/WORKSPACE b/WORKSPACE index 50a7c0a10bf..576d875f050 100644 --- a/WORKSPACE +++ b/WORKSPACE @@ -1,8 +1,5 @@ workspace( name = "angular", - managed_directories = { - "@npm": ["node_modules"], - }, ) load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive") @@ -88,9 +85,6 @@ yarn_install( exports_directories_only = False, manual_build_file_contents = npm_package_archives(), package_json = "//:package.json", - # We prefer to symlink the `node_modules` to only maintain a single install. - # See https://github.com/angular/dev-infra/pull/446#issuecomment-1059820287 for details. - symlink_node_modules = True, yarn = YARN_LABEL, yarn_lock = "//:yarn.lock", )