Skip to content

Commit cc316f1

Browse files
committed
build: update to bazel version 8.4.2
Update bazel to use version 8.4.2
1 parent 76f2603 commit cc316f1

File tree

13 files changed

+492
-746
lines changed

13 files changed

+492
-746
lines changed

.bazelversion

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
7.7.1
1+
8.4.2

MODULE.bazel.lock

Lines changed: 481 additions & 692 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

scripts/build-packages-dist.mts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,9 @@ function buildReleasePackages(distPath: string, isSnapshotBuild: boolean): Built
5555
// List of targets to build. e.g. "src/cdk:npm_package", or "src/material:npm_package".
5656
const targets = exec(queryPackagesCmd, true).split(/\r?\n/);
5757
const packageNames = getPackageNamesOfTargets(targets);
58-
const bazelBinPath = exec(`${bazelCmd} info bazel-bin`, true);
58+
// TODO: Remove --ignore_all_rc_files flag once repository can be loaded in bazelrc during info
59+
// commands again.
60+
const bazelBinPath = exec(`${bazelCmd} --ignore_all_rc_files info bazel-bin`, true);
5961
const getBazelOutputPath = (pkgName: string) => join(bazelBinPath, 'src', pkgName, 'npm_package');
6062
const getDistPath = (pkgName: string) => join(distPath, pkgName);
6163

src/cdk/clipboard/BUILD.bazel

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@ ng_project(
88
["**/*.ts"],
99
exclude = ["**/*.spec.ts"],
1010
),
11-
assets = glob(["**/*.html"]),
1211
deps = [
1312
"//:node_modules/@angular/common",
1413
"//:node_modules/@angular/core",

src/components-examples/cdk/platform/BUILD.bazel

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,7 @@ package(default_visibility = ["//visibility:public"])
55
ng_project(
66
name = "platform",
77
srcs = glob(["**/*.ts"]),
8-
assets = glob([
9-
"**/*.html",
10-
"**/*.css",
11-
]),
8+
assets = glob(["**/*.html"]),
129
deps = [
1310
"//:node_modules/@angular/core",
1411
"//src/cdk/platform",
@@ -19,7 +16,6 @@ filegroup(
1916
name = "source-files",
2017
srcs = glob([
2118
"**/*.html",
22-
"**/*.css",
2319
"**/*.ts",
2420
]),
2521
)

src/components-examples/material/bottom-sheet/BUILD.bazel

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,7 @@ ng_project(
88
["**/*.ts"],
99
exclude = ["**/*.spec.ts"],
1010
),
11-
assets = glob([
12-
"**/*.html",
13-
"**/*.css",
14-
]),
11+
assets = glob(["**/*.html"]),
1512
deps = [
1613
"//:node_modules/@angular/core",
1714
"//:node_modules/@angular/platform-browser",
@@ -30,7 +27,6 @@ filegroup(
3027
name = "source-files",
3128
srcs = glob([
3229
"**/*.html",
33-
"**/*.css",
3430
"**/*.ts",
3531
]),
3632
)

src/components-examples/material/divider/BUILD.bazel

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,7 @@ ng_project(
88
["**/*.ts"],
99
exclude = ["**/*.spec.ts"],
1010
),
11-
assets = glob([
12-
"**/*.html",
13-
"**/*.css",
14-
]),
11+
assets = glob(["**/*.html"]),
1512
deps = [
1613
"//:node_modules/@angular/core",
1714
"//:node_modules/@angular/platform-browser",
@@ -28,7 +25,6 @@ filegroup(
2825
name = "source-files",
2926
srcs = glob([
3027
"**/*.html",
31-
"**/*.css",
3228
"**/*.ts",
3329
]),
3430
)

src/components-examples/material/icon/BUILD.bazel

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,7 @@ ng_project(
88
["**/*.ts"],
99
exclude = ["**/*.spec.ts"],
1010
),
11-
assets = glob([
12-
"**/*.html",
13-
"**/*.css",
14-
]),
11+
assets = glob(["**/*.html"]),
1512
deps = [
1613
"//:node_modules/@angular/core",
1714
"//:node_modules/@angular/platform-browser",
@@ -27,7 +24,6 @@ filegroup(
2724
name = "source-files",
2825
srcs = glob([
2926
"**/*.html",
30-
"**/*.css",
3127
"**/*.ts",
3228
]),
3329
)

src/dev-app/BUILD.bazel

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -144,14 +144,6 @@ sass_binary(
144144
],
145145
)
146146

147-
# Variables that are going to be inlined into the dev app index.html.
148-
filegroup(
149-
name = "variables",
150-
# Note that we need the * in the pattern, because there's a lint rule which
151-
# doesn't allow single files in a `glob`. We have to use a glob, because the file is optional.
152-
srcs = glob(["*variables.json"]),
153-
)
154-
155147
# File group for all static files which are needed to serve the dev-app. These files are
156148
# used in the devserver as runfiles and will be copied into the static web package that can
157149
# be deployed on static hosting services (like firebase).
@@ -163,7 +155,6 @@ filegroup(
163155
"index.html",
164156
":theme",
165157
":theme_m3",
166-
":variables",
167158
"//:node_modules/moment",
168159
"//:node_modules/zone.js",
169160
"//src/dev-app/icon:icon_demo_assets",

src/material/schematics/BUILD.bazel

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -131,23 +131,13 @@ ts_project(
131131
],
132132
)
133133

134-
filegroup(
135-
name = "schematics_test_cases",
136-
testonly = True,
137-
srcs = glob([
138-
"ng-update/test-cases/**/*_input.ts",
139-
"ng-update/test-cases/**/*_expected_output.ts",
140-
]),
141-
)
142-
143134
jasmine_test(
144135
name = "unit_tests",
145136
data = [
146137
":collection_assets",
147138
":ng_generate_assets",
148139
":schema_assets",
149140
":schematics",
150-
":schematics_test_cases",
151141
":unit_test_sources",
152142
"//src/material/schematics:package_json",
153143
],

0 commit comments

Comments
 (0)