Skip to content

Commit 43972c8

Browse files
committed
fixup! build: update to bazel version 8.4.2
1 parent 74c398f commit 43972c8

File tree

3 files changed

+3
-19
lines changed

3 files changed

+3
-19
lines changed

scripts/build-packages-dist.mts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -75,9 +75,7 @@ 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-
// 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);
78+
const bazelBinPath = join(import.meta.dirname, 'dist/bin');
8179
const getBazelOutputPath = (pkgName: string) =>
8280
join(bazelBinPath, 'packages', pkgName, 'npm_package');
8381
const getDistPath = (pkgName: string) => join(distPath, pkgName);

scripts/build.mts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -122,9 +122,7 @@ export default async function (
122122
argv: { local?: boolean; snapshot?: boolean } = {},
123123
): Promise<{ name: string; outputPath: string; tarPath: string }[]> {
124124
const logger = globalThis.console;
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);
125+
const bazelBin = join(import.meta.dirname, 'dist/bin');
128126

129127
await _clean(logger);
130128

scripts/diff-release-package.mts

Lines changed: 1 addition & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -62,19 +62,7 @@ async function main(packageName: string) {
6262
git.run(['clone', `https://github.com/${snapshotRepoName}.git`, tmpDir]);
6363
console.log(`--> Cloned snapshot repo.`);
6464

65-
const bazelBinDir = childProcess
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`, {
69-
shell: true,
70-
encoding: 'utf8',
71-
stdio: ['pipe', 'pipe', 'inherit'],
72-
})
73-
.stdout.trim();
74-
if (bazelBinDir === '') {
75-
throw new Error('Could not determine bazel-bin directory.');
76-
}
77-
65+
const bazelBinDir = join(import.meta.dirname, 'dist/bin');
7866
const outputPath = path.join(bazelBinDir, 'packages/', targetDir, 'npm_package');
7967

8068
// Delete old directory to avoid surprises, or stamping being outdated.

0 commit comments

Comments
 (0)