Skip to content

Commit

Permalink
Fix 'single_file' error
Browse files Browse the repository at this point in the history
'single_file' is no longer supported. Use allow_single_file instead.
  • Loading branch information
mksmtn authored and EdSchouten committed Mar 26, 2020
1 parent 595fdf0 commit fef7a64
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 12 deletions.
12 changes: 4 additions & 8 deletions elm/def.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -141,8 +141,7 @@ elm_binary = rule(
mandatory = True,
),
"_compile": attr.label(
allow_files = True,
single_file = True,
allow_single_file = True,
default = Label("@com_github_edschouten_rules_elm//elm:compile.py"),
),
"_uglifyjs": attr.label(
Expand Down Expand Up @@ -284,13 +283,11 @@ elm_test = rule(
mandatory = True,
),
"_compile": attr.label(
allow_files = True,
single_file = True,
allow_single_file = True,
default = Label("@com_github_edschouten_rules_elm//elm:compile.py"),
),
"_generate_test_main": attr.label(
allow_files = True,
single_file = True,
allow_single_file = True,
default = Label(
"@com_github_edschouten_rules_elm//elm:generate_test_main.py",
),
Expand All @@ -310,8 +307,7 @@ elm_test = rule(
),
),
"_run_test": attr.label(
allow_files = True,
single_file = True,
allow_single_file = True,
default = Label("@com_github_edschouten_rules_elm//elm:run_test.js"),
),
},
Expand Down
6 changes: 2 additions & 4 deletions proto/def.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -83,15 +83,13 @@ _elm_proto_library_aspect = aspect(
attr_aspects = ["deps"],
attrs = {
"_protoc": attr.label(
allow_files = True,
single_file = True,
allow_single_file = True,
executable = True,
cfg = "host",
default = Label("@com_google_protobuf//:protoc"),
),
"_plugin": attr.label(
allow_files = True,
single_file = True,
allow_single_file = True,
executable = True,
cfg = "host",
default = Label("@com_github_tiziano88_elm_protobuf//protoc-gen-elm"),
Expand Down

0 comments on commit fef7a64

Please sign in to comment.