Skip to content

Commit b0a4e02

Browse files
authored
Remove deprecated call to flatDoc.normalize (#7011)
## Motivation for features / changes This was a deprecated call to a no-op function. The function has now been removed in a newer version of the library. We need to support this newer library version to unblock an internal lsc Googlers see cl/771125806 I also needed to add a new source for the jsoup dependency. Previously this was being provided by the operating system (CI currently uses ubuntu 22.04 lts), but that version is now 3 years out of date.
1 parent d1c5820 commit b0a4e02

File tree

3 files changed

+12
-4
lines changed

3 files changed

+12
-4
lines changed

tensorboard/java/org/tensorflow/tensorboard/vulcanize/BUILD

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ java_binary(
1717
"@com_google_protobuf//:protobuf_java",
1818
"@io_bazel_rules_closure//java/io/bazel/rules/closure:webpath",
1919
"@io_bazel_rules_closure//java/io/bazel/rules/closure/webfiles:build_info_java_proto",
20-
"@org_jsoup",
20+
"@org_jsoup_external",
2121
],
2222
)
2323

tensorboard/java/org/tensorflow/tensorboard/vulcanize/Vulcanize.java

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -460,9 +460,6 @@ private static Document getFlattenedHTML5Document(Document document) {
460460
}
461461
}
462462

463-
// Create `<html>`, `<head>` and `<body>`.
464-
flatDoc.normalise();
465-
466463
document.traverse(new FlatDocumentCopier(flatDoc));
467464

468465
for (Element subdoc : flatDoc.getElementsByTag("#root")) {

third_party/workspace.bzl

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -138,3 +138,14 @@ def tensorboard_workspace(name = ""):
138138
],
139139
licenses = ["notice"], # Apache 2.0
140140
)
141+
142+
java_import_external(
143+
name = "org_jsoup_external",
144+
jar_sha256 = "436adf71fe9f326e04fe134cd2785b261f0f4b9b60876adda1de3b6919463394",
145+
jar_urls = [
146+
"https://storage.googleapis.com/mirror.tensorflow.org/jsoup.org/packages/jsoup-1.21.1.jar",
147+
"https://repo1.maven.org/maven2/org/jsoup/jsoup/1.21.1/jsoup-1.21.1.jar",
148+
"https://jsoup.org/packages/jsoup-1.21.1.jar",
149+
],
150+
licenses = ["notice"], # MIT
151+
)

0 commit comments

Comments
 (0)