From a4b20f0f83560bdc6a05741ff37e6106ed12adcb Mon Sep 17 00:00:00 2001 From: Mike Bland Date: Wed, 16 Oct 2024 12:03:04 -0400 Subject: [PATCH] Update `_jvm_import_external` JAR alias target Changes the target for the `//jar:jar` alias in `_jvm_import_scala` to the top level repo target directly (`//:%s`) instead of the repo name (`@%s`). Functionally the same, but seems a bit cleaner than referencing the target as though it were external to the repo. --- scala/scala_maven_import_external.bzl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scala/scala_maven_import_external.bzl b/scala/scala_maven_import_external.bzl index a6e65a0c6..1a7bf8145 100644 --- a/scala/scala_maven_import_external.bzl +++ b/scala/scala_maven_import_external.bzl @@ -138,7 +138,7 @@ def _jvm_import_external(repository_ctx): "", "alias(", " name = \"jar\",", - " actual = \"@%s\"," % repo_name, + " actual = \"//:%s\"," % repo_name, ")", "", ]))