@@ -17,7 +17,7 @@ TensorBoard external dependencies that can be loaded in WORKSPACE files.
1717"""
1818
1919load ("@bazel_tools//tools/build_defs/repo:java.bzl" , "java_import_external" )
20- load ("@io_bazel_rules_webtesting//web/internal:platform_http_file .bzl" , "platform_http_file" ) # buildifier: disable=bzl-visibility
20+ load ("@io_bazel_rules_webtesting//web:web .bzl" , "platform_archive" )
2121load ("//third_party:fonts.bzl" , "tensorboard_fonts_workspace" )
2222load ("//third_party:python.bzl" , "tensorboard_python_workspace" )
2323load ("//third_party:js.bzl" , "tensorboard_js_workspace" )
@@ -46,44 +46,72 @@ def tensorboard_workspace(name = ""):
4646 actual = "@com_github_grpc_grpc//src/compiler:grpc_python_plugin" ,
4747 )
4848
49- platform_http_file (
50- name = "org_chromium_chromium" , # pinned to Chromium 84.0.4147.0
49+ # Chromium browser for multiple platforms, pinned to Chromium 84.0.4147.0.
50+ platform_archive (
51+ name = "org_chromium_chromium_linux_x64" ,
5152 licenses = ["notice" ], # BSD 3-clause (maybe more?)
52- amd64_sha256 =
53- "49b25bf32b797558eb7957ac7c60e065433bdef278f669291f71edd329505e27" ,
54- amd64_urls = [
53+ sha256 = "49b25bf32b797558eb7957ac7c60e065433bdef278f669291f71edd329505e27" ,
54+ urls = [
5555 "https://commondatastorage.googleapis.com/chromium-browser-snapshots/Linux_x64/768959/chrome-linux.zip" ,
5656 ],
57- macos_sha256 =
58- "f0c7dc5c26061e2f179d1cb9819cb786d2c37cca9f53155e57ac2b6ab60c5cbc" ,
59- macos_urls = [
57+ named_files = {
58+ "CHROMIUM" : "chrome-linux/chrome" ,
59+ },
60+ )
61+
62+ platform_archive (
63+ name = "org_chromium_chromium_macos" ,
64+ licenses = ["notice" ], # BSD 3-clause (maybe more?)
65+ sha256 = "f0c7dc5c26061e2f179d1cb9819cb786d2c37cca9f53155e57ac2b6ab60c5cbc" ,
66+ urls = [
6067 "https://commondatastorage.googleapis.com/chromium-browser-snapshots/Mac/768938/chrome-mac.zip" ,
6168 ],
62- windows_sha256 =
63- "f441a079046a35afc249a95d29356f33945c0a60b59236b9cf6db532c69dba6f" ,
64- windows_urls = [
69+ named_files = {
70+ "CHROMIUM" : "chrome-mac/Chromium.app/Contents/MacOS/chromium" ,
71+ },
72+ )
73+
74+ platform_archive (
75+ name = "org_chromium_chromium_windows" ,
76+ licenses = ["notice" ], # BSD 3-clause (maybe more?)
77+ sha256 = "f441a079046a35afc249a95d29356f33945c0a60b59236b9cf6db532c69dba6f" ,
78+ urls = [
6579 "https://commondatastorage.googleapis.com/chromium-browser-snapshots/Win_x64/768952/chrome-win.zip" ,
6680 ],
81+ named_files = {
82+ "CHROMIUM" : "chrome-win/chrome.exe" ,
83+ },
6784 )
6885
69- platform_http_file (
70- name = "org_chromium_chromedriver" ,
86+ # Chromium webdriver for multiple platforms.
87+ platform_archive (
88+ name = "org_chromium_chromedriver_linux_x64" ,
7189 licenses = ["reciprocal" ], # BSD 3-clause, ICU, MPL 1.1, libpng (BSD/MIT-like), Academic Free License v. 2.0, BSD 2-clause, MIT
72- amd64_sha256 =
73- "71eafe087900dbca4bc0b354a1d172df48b31a4a502e21f7c7b156d7e76c95c7" ,
74- amd64_urls = [
90+ sha256 = "71eafe087900dbca4bc0b354a1d172df48b31a4a502e21f7c7b156d7e76c95c7" ,
91+ urls = [
7592 "https://chromedriver.storage.googleapis.com/2.41/chromedriver_linux64.zip" ,
7693 ],
77- macos_sha256 =
78- "fd32a27148f44796a55f5ce3397015c89ebd9f600d9dda2bcaca54575e2497ae" ,
79- macos_urls = [
94+ named_files = {"CHROMEDRIVER" : "chromedriver" },
95+ )
96+
97+ platform_archive (
98+ name = "org_chromium_chromedriver_macos" ,
99+ licenses = ["reciprocal" ], # BSD 3-clause, ICU, MPL 1.1, libpng (BSD/MIT-like), Academic Free License v. 2.0, BSD 2-clause, MIT
100+ sha256 = "fd32a27148f44796a55f5ce3397015c89ebd9f600d9dda2bcaca54575e2497ae" ,
101+ urls = [
80102 "https://chromedriver.storage.googleapis.com/2.41/chromedriver_mac64.zip" ,
81103 ],
82- windows_sha256 =
83- "a8fa028acebef7b931ef9cb093f02865f9f7495e49351f556e919f7be77f072e" ,
84- windows_urls = [
104+ named_files = {"CHROMEDRIVER" : "chromedriver" },
105+ )
106+
107+ platform_archive (
108+ name = "org_chromium_chromedriver_windows" ,
109+ licenses = ["reciprocal" ], # BSD 3-clause, ICU, MPL 1.1, libpng (BSD/MIT-like), Academic Free License v. 2.0, BSD 2-clause, MIT
110+ sha256 = "a8fa028acebef7b931ef9cb093f02865f9f7495e49351f556e919f7be77f072e" ,
111+ urls = [
85112 "https://chromedriver.storage.googleapis.com/2.38/chromedriver_win32.zip" ,
86113 ],
114+ named_files = {"CHROMEDRIVER" : "chromedriver" },
87115 )
88116
89117 java_import_external (
0 commit comments