Skip to content

build: fix lint errors #2274

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
May 23, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions tensorboard/defs/hacks.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
# 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.
"""Compatibility hacks."""

# TODO(@jart): Merge this file into defs.bzl once that file is sync unified.

Expand All @@ -20,7 +21,7 @@ def tensorboard_typescript_bundle(
namespace_srcs,
namespace_symbol_aliases={},
namespace_symbol_aliases_public={},
**kwargs):
):
"""Rolls TypeScript ES6 modules into one vanilla source file without imports.

This is a genrule wrapper that concatenates TypeScripts sources inside
Expand Down Expand Up @@ -73,8 +74,7 @@ def tensorboard_typescript_bundle(
cmd.append(") >$@")
native.genrule(
name = name,
srcs = list(depset(transitive=inputs_depsets)),
srcs = depset(transitive=inputs_depsets).to_list(),
outs = [out],
cmd = "\n".join(cmd),
**kwargs
)
4 changes: 2 additions & 2 deletions tensorboard/defs/vulcanize.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -37,12 +37,12 @@ def _tensorboard_html_binary(ctx):
ignore_regexs_file_set = depset([ctx.file.path_regexs_for_noinline])
ignore_regexs_file_path = ctx.file.path_regexs_for_noinline.path
ctx.action(
inputs=list(depset(transitive=[
inputs=depset(transitive=[
manifests,
files,
jslibs,
ignore_regexs_file_set,
])),
]).to_list(),
outputs=[ctx.outputs.html],
executable=ctx.executable._Vulcanize,
arguments=([ctx.attr.compilation_level,
Expand Down
8 changes: 7 additions & 1 deletion tensorboard/defs/web.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -227,7 +227,13 @@ def _tf_web_library(ctx):
ts_typings_paths = depset()
ts_typings_execroots = depset()

# export data to parent rules
# Export data to parent rules. This uses the legacy, string-based
# provider mechanism for compatibility with the base `web_library`
# rule from rules_closure: because `tf_web_library`s may depend on
# either other `tf_web_library`s or base `web_library`s, the
# interfaces ~must be the same.
#
# buildozer: disable=rule-impl-return
return struct(
files=depset(web_srcs + [dummy]),
exports=unfurl(ctx.attr.exports),
Expand Down
2 changes: 1 addition & 1 deletion tensorboard/defs/zipper.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ def _tensorboard_zip_file(ctx):
webpaths = depset(transitive=[webpaths, dep.webfiles.webpaths])
files = depset(transitive=[files, dep.data_runfiles.files])
ctx.action(
inputs=list(depset(transitive=[manifests, files])),
inputs=depset(transitive=[manifests, files]).to_list(),
outputs=[ctx.outputs.zip],
executable=ctx.executable._Zipper,
arguments=([ctx.outputs.zip.path] +
Expand Down
1 change: 1 addition & 0 deletions third_party/polymer.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
load("@io_bazel_rules_closure//closure:defs.bzl", "web_library_external")

def tensorboard_polymer_workspace():
"""Add repositories for Polymer and its standard component library."""
web_library_external(
name = "org_polymer",
licenses = ["notice"], # BSD-3-Clause
Expand Down
1 change: 1 addition & 0 deletions third_party/typings.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
load("@io_bazel_rules_closure//closure:defs.bzl", "filegroup_external")

def tensorboard_typings_workspace():
"""Add repositories for TypeScript type definitions (`.d.ts` files)."""
filegroup_external(
name = "org_definitelytyped",
licenses = ["notice"], # MIT
Expand Down
1 change: 1 addition & 0 deletions third_party/workspace.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ load("//third_party:js.bzl", "tensorboard_js_workspace")
load("//third_party:typings.bzl", "tensorboard_typings_workspace")

def tensorboard_workspace():
"""Add repositories needed to build TensorBoard."""
tensorboard_fonts_workspace()
tensorboard_polymer_workspace()
tensorboard_python_workspace()
Expand Down