-
Notifications
You must be signed in to change notification settings - Fork 522
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
build(builtin): cleanup //internal/npm_install/test:test
Fixes local development issue on Windows where this test would fail on 2nd run due BUILD to files left on disk by the build file generator. Since Windows has no runfiles, the build file generator was running in the sources folder
- Loading branch information
1 parent
c0fe512
commit 0831513
Showing
17 changed files
with
127 additions
and
61 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
workspace(name = "npm_install_test") |
2 changes: 2 additions & 0 deletions
2
internal/npm_install/test/golden/install_bazel_dependencies.bzl.golden
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
def install_bazel_dependencies(): | ||
"""Installs all workspaces listed in bazelWorkspaces of all npm packages""" |
32 changes: 32 additions & 0 deletions
32
internal/npm_install/test/golden/manual_build_file_contents.golden
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
|
||
filegroup( | ||
name = "test_files", | ||
srcs = [ | ||
"//:BUILD.bazel", | ||
"//:install_bazel_dependencies.bzl", | ||
"//:manual_build_file_contents", | ||
"//:WORKSPACE", | ||
"//@angular/core:BUILD.bazel", | ||
"//@gregmagolan:BUILD.bazel", | ||
"//@gregmagolan/test-a/bin:BUILD.bazel", | ||
"//@gregmagolan/test-a:BUILD.bazel", | ||
"//@gregmagolan/test-b/bin:BUILD.bazel", | ||
"//@gregmagolan/test-b:BUILD.bazel", | ||
"//ajv:BUILD.bazel", | ||
"//jasmine/bin:BUILD.bazel", | ||
"//jasmine:BUILD.bazel", | ||
"//rxjs:BUILD.bazel", | ||
"//unidiff/bin:BUILD.bazel", | ||
"//unidiff:BUILD.bazel", | ||
"//zone.js:BUILD.bazel", | ||
"//node_modules/@angular/core:BUILD.bazel", | ||
"//node_modules/@gregmagolan:BUILD.bazel", | ||
"//node_modules/@gregmagolan/test-a:BUILD.bazel", | ||
"//node_modules/@gregmagolan/test-b:BUILD.bazel", | ||
"//node_modules/ajv:BUILD.bazel", | ||
"//node_modules/jasmine:BUILD.bazel", | ||
"//node_modules/rxjs:BUILD.bazel", | ||
"//node_modules/unidiff:BUILD.bazel", | ||
"//node_modules/zone.js:BUILD.bazel", | ||
], | ||
) |
1 change: 0 additions & 1 deletion
1
internal/npm_install/test/golden/node_modules/rxjs/BUILD.bazel.golden
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,3 @@ | ||
const {runGenerator, check, files} = require('./check'); | ||
const {check, files} = require('./check'); | ||
|
||
runGenerator(); | ||
files.forEach(file => check(file, true)); |
File renamed without changes.