-
Notifications
You must be signed in to change notification settings - Fork 59
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix: Fix cquery targets filtering #251
Merged
tinder-maxwellelliott
merged 2 commits into
Tinder:master
from
honnix:fix-cquery-missing-targets
Oct 24, 2024
Merged
Changes from 1 commit
Commits
Show all changes
2 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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 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
8 changes: 8 additions & 0 deletions
8
cli/src/test/resources/fixture/cquery-test-android-code-change-android-impacted-targets.txt
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,3 +1,11 @@ | ||
@@//src/main/java/com/integration:GuavaUserAndroid.java | ||
@@//src/main/java/com/integration:android | ||
@@//src/main/java/com/integration:android-src.jar | ||
@@//src/main/java/com/integration:android.jar | ||
@@//src/main/java/com/integration:android_deploy-src.jar | ||
@@//src/main/java/com/integration:android_deploy.jar | ||
@@//src/main/java/com/integration:android_deploy.jar.unstripped | ||
@@//src/main/java/com/integration:android_deployjars_internal_rule | ||
@@//src/main/java/com/integration:guava-user | ||
@@//src/main/java/com/integration:libguava-user-src.jar | ||
@@//src/main/java/com/integration:libguava-user.jar |
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 @@ | ||
@@//src/main/java/com/integration:GuavaUserAndroid.java |
11 changes: 11 additions & 0 deletions
11
cli/src/test/resources/fixture/cquery-test-guava-upgrade-android-impacted-targets.txt
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,8 +1,19 @@ | ||
//external:bazel_diff_maven_android | ||
@@//src/main/java/com/integration:android | ||
@@//src/main/java/com/integration:android-src.jar | ||
@@//src/main/java/com/integration:android.jar | ||
@@//src/main/java/com/integration:android_deploy-src.jar | ||
@@//src/main/java/com/integration:android_deploy.jar | ||
@@//src/main/java/com/integration:android_deploy.jar.unstripped | ||
@@//src/main/java/com/integration:android_deployjars_internal_rule | ||
@@//src/main/java/com/integration:guava-user | ||
@@//src/main/java/com/integration:libguava-user-src.jar | ||
@@//src/main/java/com/integration:libguava-user.jar | ||
@@bazel_diff_maven_android//:com_google_errorprone_error_prone_annotations | ||
@@bazel_diff_maven_android//:com_google_guava_guava | ||
@@bazel_diff_maven_android//:com_google_j2objc_j2objc_annotations | ||
@@bazel_diff_maven_android//:org_checkerframework_checker_qual | ||
@@bazel_diff_maven_android//:v1/https/jcenter.bintray.com/com/google/errorprone/error_prone_annotations/2.18.0/error_prone_annotations-2.18.0.jar | ||
@@bazel_diff_maven_android//:v1/https/jcenter.bintray.com/com/google/guava/guava/32.0.0-android/guava-32.0.0-android.jar | ||
@@bazel_diff_maven_android//:v1/https/jcenter.bintray.com/com/google/j2objc/j2objc-annotations/2.8/j2objc-annotations-2.8.jar | ||
@@bazel_diff_maven_android//:v1/https/jcenter.bintray.com/org/checkerframework/checker-qual/3.33.0/checker-qual-3.33.0.jar |
10 changes: 10 additions & 0 deletions
10
cli/src/test/resources/fixture/fine-grained-hash-bzlmod-cquery-test-impacted-targets.txt
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,13 +1,23 @@ | ||
@@//src/main/java/com/integration:guava-user | ||
@@//src/main/java/com/integration:libguava-user-src.jar | ||
@@//src/main/java/com/integration:libguava-user.jar | ||
@@rules_jvm_external~~maven~com_google_errorprone_error_prone_annotations_2_18_0//file:file | ||
@@rules_jvm_external~~maven~com_google_errorprone_error_prone_annotations_2_18_0//file:v1/com/google/errorprone/error_prone_annotations/2.18.0/error_prone_annotations-2.18.0.jar | ||
@@rules_jvm_external~~maven~com_google_guava_guava_32_0_0_jre//file:file | ||
@@rules_jvm_external~~maven~com_google_guava_guava_32_0_0_jre//file:v1/com/google/guava/guava/32.0.0-jre/guava-32.0.0-jre.jar | ||
@@rules_jvm_external~~maven~com_google_j2objc_j2objc_annotations_2_8//file:file | ||
@@rules_jvm_external~~maven~com_google_j2objc_j2objc_annotations_2_8//file:v1/com/google/j2objc/j2objc-annotations/2.8/j2objc-annotations-2.8.jar | ||
@@rules_jvm_external~~maven~maven//:com/google/errorprone/error_prone_annotations/2.18.0/error_prone_annotations-2.18.0.jar | ||
@@rules_jvm_external~~maven~maven//:com/google/guava/guava/32.0.0-jre/guava-32.0.0-jre.jar | ||
@@rules_jvm_external~~maven~maven//:com/google/j2objc/j2objc-annotations/2.8/j2objc-annotations-2.8.jar | ||
@@rules_jvm_external~~maven~maven//:com_google_errorprone_error_prone_annotations | ||
@@rules_jvm_external~~maven~maven//:com_google_errorprone_error_prone_annotations_2_18_0_extension | ||
@@rules_jvm_external~~maven~maven//:com_google_guava_guava | ||
@@rules_jvm_external~~maven~maven//:com_google_guava_guava_32_0_0_jre_extension | ||
@@rules_jvm_external~~maven~maven//:com_google_j2objc_j2objc_annotations | ||
@@rules_jvm_external~~maven~maven//:com_google_j2objc_j2objc_annotations_2_8_extension | ||
@@rules_jvm_external~~maven~maven//:org/checkerframework/checker-qual/3.33.0/checker-qual-3.33.0.jar | ||
@@rules_jvm_external~~maven~maven//:org_checkerframework_checker_qual | ||
@@rules_jvm_external~~maven~maven//:org_checkerframework_checker_qual_3_33_0_extension | ||
@@rules_jvm_external~~maven~org_checkerframework_checker_qual_3_33_0//file:file | ||
@@rules_jvm_external~~maven~org_checkerframework_checker_qual_3_33_0//file:v1/org/checkerframework/checker-qual/3.33.0/checker-qual-3.33.0.jar |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's surprising this source file appears here, but it is not filtered out by the starlark function. From my observation, it does have providers:
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I deleted that comment in a later commit