Skip to content
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: Handle canonical repo name for cquery #224

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 4 additions & 3 deletions cli/src/main/kotlin/com/bazel_diff/bazel/BazelQueryService.kt
Original file line number Diff line number Diff line change
Expand Up @@ -96,11 +96,12 @@ class BazelQueryService(
return ""
if "IncompatiblePlatformProvider" not in providers(target):
label = str(target.label)
# normalize label to be consistent with content inside proto
if label.startswith("@//"):
# normalize label to be consistent with content inside proto
return label[1:]
else:
return label
if label.startswith("@@//"):
return label[2:]
return label
return ""
""".trimIndent())
add(cqueryOutputFile.toString())
Expand Down
Loading