Skip to content

Commit 09ee0e7

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

File tree

17 files changed

+498
-752
lines changed

17 files changed

+498
-752
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

.github/workflows/ci.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,11 +27,11 @@ jobs:
2727
- name: Checking package externals
2828
run: |
2929
bazel build //:package_externals
30-
pnpm check-package-externals $(bazel info bazel-bin)/package_externals.json
30+
pnpm check-package-externals $(bazel --ignore_all_rc_files info bazel-bin)/package_externals.json
3131
- name: Checking entry-points configuration
3232
run: |
3333
bazel build //:entry_points_manifest
34-
pnpm check-entry-point-setup $(bazel info bazel-bin)/entry_points_manifest.json
34+
pnpm check-entry-point-setup $(bazel --ignore_all_rc_files info bazel-bin)/entry_points_manifest.json
3535
- name: Validate pull approve configuration
3636
run: pnpm ng-dev pullapprove verify
3737
- name: Check for component id collisions

.github/workflows/pr.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,11 +25,11 @@ jobs:
2525
- name: Checking package externals
2626
run: |
2727
bazel build //:package_externals
28-
pnpm check-package-externals $(bazel info bazel-bin)/package_externals.json
28+
pnpm check-package-externals $(bazel --ignore_all_rc_files info bazel-bin)/package_externals.json
2929
- name: Checking entry-points configuration
3030
run: |
3131
bazel build //:entry_points_manifest
32-
pnpm check-entry-point-setup $(bazel info bazel-bin)/entry_points_manifest.json
32+
pnpm check-entry-point-setup $(bazel --ignore_all_rc_files info bazel-bin)/entry_points_manifest.json
3333
- name: Validate pull approve configuration
3434
run: pnpm ng-dev pullapprove verify
3535
- name: Check for component id collisions

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-docs-content.mts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ export function buildDocsContentPackage(): BuiltPackage {
3636
sh.cd(projectDir);
3737

3838
/** Path to the bazel bin output directory. */
39-
const bazelBinPath = sh.exec(`${bazelCmd} info bazel-bin`).stdout.trim();
39+
const bazelBinPath = sh.exec(`${bazelCmd} --ignore_all_rc_files info bazel-bin`).stdout.trim();
4040

4141
/** Path where the NPM package is built into by Bazel. */
4242
const bazelBinOutDir = join(bazelBinPath, 'src/components-examples/npm_package');

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

scripts/deploy-dev-app.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ const projectDirPath = join(__dirname, '../');
1818
cd(projectDirPath);
1919

2020
/** Path to the bazel-bin directory. */
21-
const bazelBinPath = exec(`pnpm -s bazel info bazel-bin`).stdout.trim();
21+
const bazelBinPath = exec(`pnpm -s bazel --ignore_all_rc_files info bazel-bin`).stdout.trim();
2222

2323
/** Output path for the Bazel dev-app web package target. */
2424
const webPackagePath = join(bazelBinPath, 'src/dev-app/web_package');

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
)

0 commit comments

Comments
 (0)