Skip to content

Commit bf2c910

Browse files
authored
build: add try/catch to @angular/bazel ng_module patch (#18985)
Navigating the angular/angular & angular/components dependency sandwich.
1 parent 3ede17d commit bf2c910

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

tools/postinstall/apply-patches.js

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -98,9 +98,12 @@ searchAndReplace(
9898
// Workaround for: https://github.com/bazelbuild/rules_nodejs/issues/1208.
9999
applyPatch(path.join(__dirname, './manifest_externs_hermeticity.patch'));
100100

101-
// Pre-req for https://github.com/angular/angular/pull/36333. Can be removed
102-
// once @angular/bazel is updated here to include this patch.
103-
applyPatch(path.join(__dirname, './@angular_bazel_ng_module.patch'));
101+
try {
102+
// Temporary patch pre-req for https://github.com/angular/angular/pull/36333.
103+
// Can be removed once @angular/bazel is updated here to include this patch.
104+
// try/catch needed for this the material CI tests to work in angular/repo
105+
applyPatch(path.join(__dirname, './@angular_bazel_ng_module.patch'));
106+
} catch (_) {}
104107

105108
// Workaround for https://github.com/angular/angular/issues/33452:
106109
searchAndReplace(/angular_compiler_options = {/, `$&

0 commit comments

Comments
 (0)