Skip to content
This repository has been archived by the owner on Jun 4, 2024. It is now read-only.

Commit

Permalink
handle empty deps in emulated rules (#257)
Browse files Browse the repository at this point in the history
  • Loading branch information
SrodriguezO authored Dec 16, 2019
1 parent ebfaf9b commit 26163cc
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions rules/rules_scala/private/compat.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,7 @@ def scala_library(
if main_class != None:
print("%s: main_class unsupported" % name)

deps = deps if deps else []
_scala_library(
name = name,
srcs = srcs,
Expand Down Expand Up @@ -185,7 +186,7 @@ def scala_binary(
if classpath_resources != []:
print("%s: classpath_resources unsupported" % name)

scala_compiler_deps = [] if _scala in deps else [_scala]
deps = deps if deps else []
_scala_binary(
name = name,
srcs = srcs,
Expand Down Expand Up @@ -253,7 +254,7 @@ def scala_test(
if full_stacktraces != None:
print("%s: full_stacktraces unsupported" % name)

scala_compiler_deps = [] if _scala in deps else [_scala]
deps = deps if deps else []
_scala_test(
name = name,
srcs = srcs,
Expand Down

0 comments on commit 26163cc

Please sign in to comment.