mirror of
https://github.com/angular/angular
synced 2026-05-24 09:28:37 +00:00
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
This commit is contained in:
parent
ebaa5f7d32
commit
cfa0591c8b
3 changed files with 2 additions and 8 deletions
2
.bazelrc
2
.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
|
||||
|
|
|
|||
|
|
@ -1 +1 @@
|
|||
5.0.0
|
||||
6.5.0
|
||||
|
|
|
|||
|
|
@ -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",
|
||||
)
|
||||
|
|
|
|||
Loading…
Reference in a new issue