Skip to content

Commit 8e600ba

Browse files
committed
build: update to bazel version 8.4.2
Update bazel to use version 8.4.2
1 parent 9a8ea6b commit 8e600ba

File tree

7 files changed

+527
-765
lines changed

7 files changed

+527
-765
lines changed

.bazelrc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ test --incompatible_strict_action_env
5353
build --experimental_remote_merkle_tree_cache
5454

5555
# Ensure that tags applied in BUILDs propagate to actions
56-
common --experimental_allow_tags_propagation
56+
common --incompatible_allow_tags_propagation
5757

5858
# Ensure sandboxing is enabled even for exclusive tests
5959
test --incompatible_exclusive_test_sandboxed

.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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ module(
44
name = "angular_cli",
55
)
66

7+
bazel_dep(name = "platforms", version = "1.0.0")
78
bazel_dep(name = "yq.bzl", version = "0.3.2")
89
bazel_dep(name = "rules_nodejs", version = "6.6.2")
910
bazel_dep(name = "aspect_rules_js", version = "2.8.3")

MODULE.bazel.lock

Lines changed: 514 additions & 758 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: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,9 @@ function buildReleasePackages(
7575
// List of targets to build. e.g. "packages/angular/cli:npm_package"
7676
const targets = exec(queryPackagesCmd, true).split(/\r?\n/);
7777
const packageNames = getPackageNamesOfTargets(targets);
78-
const bazelBinPath = exec(`${bazelCmd} info bazel-bin`, true);
78+
// TODO: Remove --ignore_all_rc_files flag once repository can be loaded in bazelrc during info
79+
// commands again.
80+
const bazelBinPath = exec(`${bazelCmd} --ignore_all_rc_files info bazel-bin`, true);
7981
const getBazelOutputPath = (pkgName: string) =>
8082
join(bazelBinPath, 'packages', pkgName, 'npm_package');
8183
const getDistPath = (pkgName: string) => join(distPath, pkgName);
@@ -160,7 +162,7 @@ function getPackageNamesOfTargets(targets: string[]): string[] {
160162
if (matches === null) {
161163
throw Error(
162164
`Found Bazel target with "${releaseTargetTag}" tag, but could not ` +
163-
`determine release output name: ${targetName}`,
165+
`determine release output name: ${targetName}`,
164166
);
165167
}
166168

scripts/build.mts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -122,8 +122,9 @@ export default async function (
122122
argv: { local?: boolean; snapshot?: boolean } = {},
123123
): Promise<{ name: string; outputPath: string; tarPath: string }[]> {
124124
const logger = globalThis.console;
125-
126-
const bazelBin = await _exec(`${bazelCmd} info bazel-bin`, true, logger);
125+
// TODO: Remove --ignore_all_rc_files flag once repository can be loaded in bazelrc during info
126+
// commands again.
127+
const bazelBin = await _exec(`${bazelCmd} --ignore_all_rc_files info bazel-bin`, true, logger);
127128

128129
await _clean(logger);
129130

scripts/diff-release-package.mts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,9 @@ async function main(packageName: string) {
6363
console.log(`--> Cloned snapshot repo.`);
6464

6565
const bazelBinDir = childProcess
66-
.spawnSync(`${bazel} info bazel-bin`, {
66+
// TODO: Remove --ignore_all_rc_files flag once repository can be loaded in bazelrc during info
67+
// commands again.
68+
.spawnSync(`${bazel} --ignore_all_rc_files info bazel-bin`, {
6769
shell: true,
6870
encoding: 'utf8',
6971
stdio: ['pipe', 'pipe', 'inherit'],

0 commit comments

Comments
 (0)