Skip to content

Commit

Permalink
Fix the visibility of the license target in TFF.
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 630418742
  • Loading branch information
michaelreneer authored and tensorflow-copybara committed May 3, 2024
1 parent 7e13c8a commit a9c0fbf
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,15 @@ load("@rules_license//rules:license.bzl", "license")

package(
default_applicable_licenses = [":package_license"],
default_visibility = ["//visibility:private"],
default_visibility = ["//visibility:public"],
)

licenses(["notice"])

license(
name = "package_license",
package_name = "tensorflow_federated",
license_kinds = ["@rules_license//licenses/spdx:Apache-2.0"],
)

licenses(["notice"])

exports_files(["LICENSE"])
2 changes: 1 addition & 1 deletion tensorflow_federated/BUILD
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
load("@rules_python//python:defs.bzl", "py_library")

package(
default_applicable_licenses = ["//:package_license"],
default_applicable_licenses = [":package_license"],
default_visibility = ["//visibility:private"],
)

Expand Down
2 changes: 1 addition & 1 deletion tensorflow_federated/tools/build_defs.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ load("@rules_python//python:defs.bzl", "py_test")

def if_static(extra, framework_shared_object = []): # buildifier: disable=unused-variable
return_value = {
str(Label("@org_tensorflow//tensorflow:framework_shared_object")): framework_shared_object,
str(Label("//third_party/tensorflow:framework_shared_object")): framework_shared_object,
"//conditions:default": extra,
}
return select(return_value)
Expand Down

0 comments on commit a9c0fbf

Please sign in to comment.