
In I44ca2ecfea6 native http_file was replaced with Starlark rule. During this migration the original file name was lost and hard coded to file named "downloaded". The closure_js_library expects files with .js suffix as source files, so that we had to add an intermediate rename step to make it work gain. In context of this feature request: [1] downloaded_file_path was added to the http_file rule: [2] so that we can use it now and can remove the intermediate renaming step. The aformentioned fix was included in 0.17.1 and we already have that version as the minimum required Bazel version, so that we can clean that up now. [1] https://github.com/bazelbuild/bazel/issues/5633 [2] https://github.com/bazelbuild/bazel/pull/5647 Change-Id: Ia00e5d7b4eb9c18be808b290ac299e658ab33b9a
27 lines
893 B
Python
27 lines
893 B
Python
# Copyright (C) 2017 The Android Open Source Project
|
|
#
|
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
# you may not use this file except in compliance with the License.
|
|
# You may obtain a copy of the License at
|
|
#
|
|
# http://www.apache.org/licenses/LICENSE-2.0
|
|
#
|
|
# Unless required by applicable law or agreed to in writing, software
|
|
# distributed under the License is distributed on an "AS IS" BASIS,
|
|
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
# See the License for the specific language governing permissions and
|
|
# limitations under the License.
|
|
|
|
package(
|
|
default_visibility = ["//visibility:public"],
|
|
)
|
|
|
|
load("@io_bazel_rules_closure//closure:defs.bzl", "closure_js_library")
|
|
|
|
closure_js_library(
|
|
name = "polymer_closure",
|
|
srcs = ["@polymer_closure//file"],
|
|
data = ["//lib:LICENSE-Apache2.0"],
|
|
no_closure_library = True,
|
|
)
|