Skip to content

Commit

Permalink
fixed (#59)
Browse files Browse the repository at this point in the history
Co-authored-by: anna-skrodzka <annaskrod@h=gmail.com>
  • Loading branch information
anna-skrodzka and anna-skrodzka authored Nov 20, 2024
1 parent be06898 commit d3c5ca4
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions deps/src/Target.scala
Original file line number Diff line number Diff line change
Expand Up @@ -36,12 +36,16 @@ final case class Target(
val adjustedName = getAdjustedName(coordinates)
val runtime_deps =
val deps0 = deps
.groupBy(getAdjustedName)
.valuesIterator
.map(_.head)
.map { c =>
val depName = getAdjustedName(c)
if coordinates.groupId == c.groupId
then s"\":$depName\""
else s"\"${vars.targetsTreeBazelPath}/${c.groupId.toUnixPath}:$depName\""
}
.toSeq
.sorted
.mkString(",\n ")
if deps0 == ""
Expand Down

0 comments on commit d3c5ca4

Please sign in to comment.