From b1e099b657fef6d73533464fd0d75cf13b190344 Mon Sep 17 00:00:00 2001 From: Keen Yee Liau Date: Wed, 30 Jan 2019 15:20:24 -0800 Subject: [PATCH] fix(bazel): fix integration test for bazel-schematics (#28460) With the release of @angular/bazel v7.2.3, the npm install step right after `ng new` installs this version. However there is a bug in the builder which results in bazel executable not found. This bug was not discovered before because the dependencies of the project created by `ng new` are not pinned. The fix is to pin the version of @angular/bazel to 7.2.2 which relies on global installation of bazel. PR Close #28460 --- integration/bazel-schematics/test.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/integration/bazel-schematics/test.sh b/integration/bazel-schematics/test.sh index 976f054aba..5a1bc881f2 100755 --- a/integration/bazel-schematics/test.sh +++ b/integration/bazel-schematics/test.sh @@ -10,6 +10,8 @@ function testBazel() { ng new demo --collection=@angular/bazel --defaults --skip-git --style=scss node replace_angular_repo.js "./demo/WORKSPACE" cd demo + # TODO(kyliau) pin @angular/bazel version to 7.2.2 due to builder bug in 7.2.3 + yarn add @angular/bazel@7.2.2 cp ../package.json.replace ./package.json ng generate component widget --style=css ng build