Skip to content

Commit

Permalink
targetsTreeBazelPath fixed (#50)
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 Oct 31, 2024
1 parent a61eca3 commit f86df62
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
6 changes: 4 additions & 2 deletions deps/src/Vars.scala
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ case class Vars(
projectRoot: File = new File("."),
scalaVersion: String = "",
dependencies: String = "",
destination: String = "3rdparty",
destination: String = "/3rdparty",
bazelExtName: String = "workspace.bzl",
targetsDirName: String = "jvm",
targetsFileName: String = "BUILD"
Expand All @@ -16,7 +16,9 @@ case class Vars(
def bazelExtFile: File = new File(depsFile, bazelExtName)
def depsBuildFile: File = new File(depsFile, targetsFileName)
def targetsTreeFile: File = new File(depsFile, targetsDirName)
def targetsTreeBazelPath: String = s"//$destination/$targetsDirName"
def targetsTreeBazelPath: String = destination match
case d if d.startsWith("/") => s"/$d/$targetsDirName"
case d => s"//$d/$targetsDirName"

object Vars:
private val builder = OParser.builder[Vars]
Expand Down
1 change: 0 additions & 1 deletion scala/3rdparty/workspace.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,6 @@ def jar_artifact_callback(hash):
)
native.bind(name = hash["bind"], actual = hash["actual"])


def list_dependencies():
return [
{"artifact":"com.eed3si9n:shaded-jawn-parser_3:1.3.2","url":"https://repo1.maven.org/maven2/com/eed3si9n/shaded-jawn-parser_3/1.3.2/shaded-jawn-parser_3-1.3.2.jar","name":"com_eed3si9n_shaded_jawn_parser_3","actual":"@com_eed3si9n_shaded_jawn_parser_3//jar","bind": "jar/com/eed3si9n/shaded_jawn_parser_3"},
Expand Down

0 comments on commit f86df62

Please sign in to comment.