Skip to content

Commit 6cbe4b2

Browse files
build: update to bazel 7.6.0 (angular#31677)
Update to later version of bazel
1 parent e478208 commit 6cbe4b2

File tree

9 files changed

+124
-6
lines changed

9 files changed

+124
-6
lines changed

.bazelversion

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
6.5.0
1+
7.5.0

MODULE.bazel

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
# TODO: Investigate bzlmod and use it where possible.
2+
3+
module(
4+
name = "angular_material",
5+
)

MODULE.bazel.lock

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

integration/module-tests/index.mts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,9 @@ import ts from 'typescript';
66
import {findAllEntryPointsAndExportedModules} from './find-all-modules.mjs';
77

88
async function main() {
9+
// Touch the TEST_SHARD_FILE to mark for bazel that sharding is supported.
10+
await fs.writeFile(process.env.TEST_SHARD_STATUS_FILE!, '', {encoding: 'utf-8'});
11+
912
const [configPath] = process.argv.slice(2);
1013
const tmpDir = await fs.mkdtemp(path.join(os.tmpdir(), 'ng-module-test-'));
1114
const config = JSON.parse(await fs.readFile(configPath, 'utf8')) as {

src/dev-app/BUILD.bazel

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,7 @@ http_server(
170170
name = "devserver",
171171
srcs = [":dev_app_static_files"],
172172
additional_root_paths = [
173-
"angular_material/",
173+
"_main/",
174174
],
175175
enable_dev_ui = True,
176176
# List of environment variables that will be made available as `window.<NAME>` in the

src/e2e-app/BUILD.bazel

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ http_server(
8484
testonly = True,
8585
srcs = devserverIndexHtmlDependencies,
8686
additional_root_paths = [
87-
"angular_material/",
87+
"_main/",
8888
],
8989
tags = ["manual"],
9090
deps = [

src/material/schematics/ng-update/test-cases/index.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import {MIGRATION_PATH} from '../../paths';
88
describe('Material upgrade test cases', () => {
99
const versionNames = getAllVersionNames().map(versionName => versionName.toLowerCase());
1010
const testCasesMap = findBazelVersionTestCases(
11-
'angular_material/src/material/schematics/ng-update/test-cases',
11+
'_main/src/material/schematics/ng-update/test-cases',
1212
);
1313

1414
// Setup the test cases for each target version. The test cases will be automatically

src/universal-app/BUILD.bazel

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@ http_server(
145145
"//:node_modules/zone.js",
146146
],
147147
additional_root_paths = [
148-
"angular_material/",
148+
"_main/",
149149
],
150150
tags = ["manual"],
151151
deps = [

tools/release-checks/npm-package-output/output-validations.mts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ const inlineStylesSourcemapRegex = /styles: ?\[["'].*sourceMappingURL=.*["']/;
1212
const externalReferencesRegex = /(templateUrl|styleUrls): *["'[]/;
1313

1414
/** RegExp that matches common Bazel manifest paths in this workspace */
15-
const bazelManifestPath = /(angular_material|external)\//;
15+
const bazelManifestPath = /(_main|external)\//;
1616

1717
/**
1818
* List of fields which are mandatory in entry-point "package.json" files and refer

0 commit comments

Comments
 (0)