From 5f2b6c56f2585a9e15424af0d155567e05a90099 Mon Sep 17 00:00:00 2001 From: Shachar Anchelovich Date: Tue, 18 Jun 2019 11:37:32 +0300 Subject: [PATCH 1/2] replace single_file with allow_single_file --- jar_jar.bzl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/jar_jar.bzl b/jar_jar.bzl index d112c7e..55a6a7b 100644 --- a/jar_jar.bzl +++ b/jar_jar.bzl @@ -23,8 +23,8 @@ def _jar_jar_impl(ctx): jar_jar = rule( implementation = _jar_jar_impl, attrs = { - "input_jar": attr.label(allow_files=True, single_file=True), - "rules": attr.label(allow_files=True, single_file=True), + "input_jar": attr.label(allow_files=True, allow_single_file=True), + "rules": attr.label(allow_files=True, allow_single_file=True), "_jarjar_runner": attr.label(executable=True, cfg="host", default=Label("@com_github_johnynek_bazel_jar_jar//:jarjar_runner")), }, outputs = { From f286e43c828c8cb5d9d31f7767148bc079247f48 Mon Sep 17 00:00:00 2001 From: Shachar Anchelovich Date: Tue, 18 Jun 2019 11:39:47 +0300 Subject: [PATCH 2/2] remove allow_files --- jar_jar.bzl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/jar_jar.bzl b/jar_jar.bzl index 55a6a7b..e3e9a2f 100644 --- a/jar_jar.bzl +++ b/jar_jar.bzl @@ -23,8 +23,8 @@ def _jar_jar_impl(ctx): jar_jar = rule( implementation = _jar_jar_impl, attrs = { - "input_jar": attr.label(allow_files=True, allow_single_file=True), - "rules": attr.label(allow_files=True, allow_single_file=True), + "input_jar": attr.label(allow_single_file=True), + "rules": attr.label(allow_single_file=True), "_jarjar_runner": attr.label(executable=True, cfg="host", default=Label("@com_github_johnynek_bazel_jar_jar//:jarjar_runner")), }, outputs = {