From a02833ed99fb49b54502612696177c4577c53f53 Mon Sep 17 00:00:00 2001 From: jjudd Date: Tue, 15 Oct 2024 18:53:21 -0600 Subject: [PATCH] Convert native new_local_repository to Starlark version --- rules/scalafmt/workspace.bzl | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/rules/scalafmt/workspace.bzl b/rules/scalafmt/workspace.bzl index 88d12e5f..6f7f58c4 100644 --- a/rules/scalafmt/workspace.bzl +++ b/rules/scalafmt/workspace.bzl @@ -1,3 +1,4 @@ +load("@bazel_tools//tools/build_defs/repo:local.bzl", "new_local_repository") load("@rules_jvm_external//:defs.bzl", "maven_install") def scalafmt_artifacts(): @@ -27,4 +28,4 @@ def scalafmt_default_config(path = ".scalafmt.conf"): build.append(" srcs = [\"{}\"],".format(path)) build.append(" visibility = [\"//visibility:public\"],") build.append(")") - native.new_local_repository(name = "scalafmt_default", build_file_content = "\n".join(build), path = "") + new_local_repository(name = "scalafmt_default", build_file_content = "\n".join(build), path = "")