-
Notifications
You must be signed in to change notification settings - Fork 24
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(gazelle): override parent target glob config when specified (#2651)
When a BUILD specifies a glob for a target (lib, test, or custom target) the parent glob configuration for that target is overridden, not extended. This aligns with Aspect-CLI <5.5 GitOrigin-RevId: a3726a1ccfa410a0727578fc3e599129571f345e
- Loading branch information
1 parent
b077571
commit a9dce42
Showing
9 changed files
with
31 additions
and
6 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
# Output everything as a standard lib, no test target | ||
|
||
# Only contains a standard target, no tests | ||
# gazelle:js_test_files there-are-no-tests |
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,16 @@ | ||
load("@aspect_rules_ts//ts:defs.bzl", "ts_project") | ||
|
||
# Output everything as a standard lib, no test target | ||
|
||
# Only contains a standard target, no tests | ||
# gazelle:js_test_files there-are-no-tests | ||
|
||
ts_project( | ||
name = "test-lib", | ||
srcs = [ | ||
"faker.ts", | ||
"normally.mock.ts", | ||
"normally.spec.ts", | ||
"normally.test.ts", | ||
], | ||
) |
Empty file.
Empty file.
Empty file.
Empty file.
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 +1 @@ | ||
# gazelle:js_test_files **/*.test.ts | ||
# gazelle:js_test_files **/*.{mock,spec,test}.ts |
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