File tree 5 files changed +25
-9
lines changed
5 files changed +25
-9
lines changed Original file line number Diff line number Diff line change @@ -2,22 +2,22 @@ workspace(name = "org_tensorflow")
2
2
3
3
# Initialize the TensorFlow repository and all dependencies.
4
4
#
5
- # The cascade of load() statements and workspace () calls works around the
5
+ # The cascade of load() statements and tf_workspace? () calls works around the
6
6
# restriction that load() statements need to be at the top of .bzl files.
7
7
# E.g. we can not retrieve a new repository with http_archive and then load()
8
8
# a macro from that repository in the same file.
9
- load ("@//tensorflow:workspace3.bzl" , "workspace " )
9
+ load ("@//tensorflow:workspace3.bzl" , "tf_workspace3 " )
10
10
11
- workspace ()
11
+ tf_workspace3 ()
12
12
13
- load ("@//tensorflow:workspace2.bzl" , "workspace " )
13
+ load ("@//tensorflow:workspace2.bzl" , "tf_workspace2 " )
14
14
15
- workspace ()
15
+ tf_workspace2 ()
16
16
17
- load ("@//tensorflow:workspace1.bzl" , "workspace " )
17
+ load ("@//tensorflow:workspace1.bzl" , "tf_workspace1 " )
18
18
19
- workspace ()
19
+ tf_workspace1 ()
20
20
21
- load ("@//tensorflow:workspace0.bzl" , "workspace " )
21
+ load ("@//tensorflow:workspace0.bzl" , "tf_workspace0 " )
22
22
23
- workspace ()
23
+ tf_workspace0 ()
Original file line number Diff line number Diff line change @@ -76,3 +76,7 @@ def workspace():
76
76
77
77
grpc_extra_deps ()
78
78
config_googleapis ()
79
+
80
+ # Alias so it can be loaded without assigning to a different symbol to prevent
81
+ # shadowing previous loads and trigger a buildifier warning.
82
+ tf_workspace0 = workspace
Original file line number Diff line number Diff line change @@ -14,3 +14,7 @@ def workspace():
14
14
android_configure (name = "local_config_android" )
15
15
16
16
grpc_deps ()
17
+
18
+ # Alias so it can be loaded without assigning to a different symbol to prevent
19
+ # shadowing previous loads and trigger a buildifier warning.
20
+ tf_workspace1 = workspace
Original file line number Diff line number Diff line change @@ -11,3 +11,7 @@ def workspace():
11
11
# Load tf_repositories() before loading dependencies for other repository so
12
12
# that dependencies like com_google_protobuf won't be overridden.
13
13
tf_repositories ()
14
+
15
+ # Alias so it can be loaded without assigning to a different symbol to prevent
16
+ # shadowing previous loads and trigger a buildifier warning.
17
+ tf_workspace2 = workspace
Original file line number Diff line number Diff line change @@ -12,3 +12,7 @@ def workspace():
12
12
"https://github.com/bazelbuild/rules_closure/archive/308b05b2419edb5c8ee0471b67a40403df940149.tar.gz" , # 2019-06-13
13
13
],
14
14
)
15
+
16
+ # Alias so it can be loaded without assigning to a different symbol to prevent
17
+ # shadowing previous loads and trigger a buildifier warning.
18
+ tf_workspace3 = workspace
You can’t perform that action at this time.
0 commit comments