Skip to content

Commit

Permalink
Convert native new_local_repository to Starlark version
Browse files Browse the repository at this point in the history
  • Loading branch information
jjudd committed Oct 16, 2024
1 parent f23c160 commit a02833e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion rules/scalafmt/workspace.bzl
Original file line number Diff line number Diff line change
@@ -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():
Expand Down Expand Up @@ -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 = "")

0 comments on commit a02833e

Please sign in to comment.