Skip to content

Commit

Permalink
fix: Handle alias for compatible targets query (#262)
Browse files Browse the repository at this point in the history
  • Loading branch information
honnix authored Jan 24, 2025
1 parent 96c9505 commit 65a68b0
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions cli/src/main/kotlin/com/bazel_diff/bazel/BazelQueryService.kt
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,9 @@ class BazelQueryService(
if providers(target) == None:
return ""
if "IncompatiblePlatformProvider" not in providers(target):
target_repr = repr(target)
if "<alias target" in target_repr:
return target_repr.split(" ")[2]
return str(target.label)
return ""
"""
Expand Down

0 comments on commit 65a68b0

Please sign in to comment.