Skip to content

Commit 98b3d2d

Browse files
committed
Scalafmt toolchain improvements
1 parent ac2c66c commit 98b3d2d

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

rules/scalafmt/private/test.bzl

+1-1
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ scala_non_default_format_attributes = {
3232
def build_format(ctx):
3333
files = []
3434
manifest_content = []
35-
config = ctx.toolchains["//rules/scalafmt:toolchain_type"].scalafmt_config.config
35+
config = ctx.toolchains["@rules_scala_annex//rules/scalafmt:toolchain_type"].scalafmt_config.config
3636

3737
for src in ctx.files.srcs:
3838
if src.short_path.endswith(".scala") and src.is_source:

rules/scalafmt/register_toolchain.bzl

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ _scalafmt_config = rule(
1515
attrs = {
1616
"config": attr.label(
1717
allow_single_file = [".conf"],
18-
default = "//:.scalafmt.conf",
18+
default = "@rules_scala_annex//:.scalafmt.conf",
1919
doc = "The Scalafmt configuration file.",
2020
),
2121
},

0 commit comments

Comments
 (0)