Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .bazelrc
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ test --incompatible_strict_action_env
build --experimental_remote_merkle_tree_cache

# Ensure that tags applied in BUILDs propagate to actions
common --experimental_allow_tags_propagation
common --incompatible_allow_tags_propagation

# Ensure sandboxing is enabled even for exclusive tests
test --incompatible_exclusive_test_sandboxed
Expand Down
2 changes: 1 addition & 1 deletion .bazelversion
Original file line number Diff line number Diff line change
@@ -1 +1 @@
7.7.1
8.4.2
1 change: 1 addition & 0 deletions MODULE.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ module(
name = "angular_cli",
)

bazel_dep(name = "platforms", version = "1.0.0")
bazel_dep(name = "yq.bzl", version = "0.3.2")
bazel_dep(name = "rules_nodejs", version = "6.6.2")
bazel_dep(name = "aspect_rules_js", version = "2.8.3")
Expand Down
1,272 changes: 514 additions & 758 deletions MODULE.bazel.lock

Large diffs are not rendered by default.

6 changes: 4 additions & 2 deletions scripts/build-packages-dist.mts
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,9 @@ function buildReleasePackages(
// List of targets to build. e.g. "packages/angular/cli:npm_package"
const targets = exec(queryPackagesCmd, true).split(/\r?\n/);
const packageNames = getPackageNamesOfTargets(targets);
const bazelBinPath = exec(`${bazelCmd} info bazel-bin`, true);
// TODO: Remove --ignore_all_rc_files flag once repository can be loaded in bazelrc during info
// commands again.
const bazelBinPath = exec(`${bazelCmd} --ignore_all_rc_files info bazel-bin`, true);
const getBazelOutputPath = (pkgName: string) =>
join(bazelBinPath, 'packages', pkgName, 'npm_package');
const getDistPath = (pkgName: string) => join(distPath, pkgName);
Expand Down Expand Up @@ -160,7 +162,7 @@ function getPackageNamesOfTargets(targets: string[]): string[] {
if (matches === null) {
throw Error(
`Found Bazel target with "${releaseTargetTag}" tag, but could not ` +
`determine release output name: ${targetName}`,
`determine release output name: ${targetName}`,
);
}

Expand Down
5 changes: 3 additions & 2 deletions scripts/build.mts
Original file line number Diff line number Diff line change
Expand Up @@ -122,8 +122,9 @@ export default async function (
argv: { local?: boolean; snapshot?: boolean } = {},
): Promise<{ name: string; outputPath: string; tarPath: string }[]> {
const logger = globalThis.console;

const bazelBin = await _exec(`${bazelCmd} info bazel-bin`, true, logger);
// TODO: Remove --ignore_all_rc_files flag once repository can be loaded in bazelrc during info
// commands again.
const bazelBin = await _exec(`${bazelCmd} --ignore_all_rc_files info bazel-bin`, true, logger);

await _clean(logger);

Expand Down
4 changes: 3 additions & 1 deletion scripts/diff-release-package.mts
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,9 @@ async function main(packageName: string) {
console.log(`--> Cloned snapshot repo.`);

const bazelBinDir = childProcess
.spawnSync(`${bazel} info bazel-bin`, {
// TODO: Remove --ignore_all_rc_files flag once repository can be loaded in bazelrc during info
// commands again.
.spawnSync(`${bazel} --ignore_all_rc_files info bazel-bin`, {
shell: true,
encoding: 'utf8',
stdio: ['pipe', 'pipe', 'inherit'],
Expand Down
Loading