Skip to content

Commit

Permalink
fix build target naming and visibility (#100)
Browse files Browse the repository at this point in the history
* fix build target naming and visibility
  • Loading branch information
xmenxk authored Apr 12, 2023
1 parent 81a6f4a commit f285005
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 6 deletions.
9 changes: 7 additions & 2 deletions BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test")

package(
default_visibility = ["//:__subpackages__"],
default_visibility = ["//visibility:public"],
)

licenses(["notice"])
Expand All @@ -34,7 +34,7 @@ go_library(
],
importpath = "github.com/google/s2a-go",
deps = [
"//fallback:s2a_fallback",
"//fallback",
"//internal/handshaker",
"//internal/handshaker/service",
"//internal/proto/common_go_proto",
Expand All @@ -48,6 +48,11 @@ go_library(
],
)

alias(
name = "s2a-go",
actual = ":s2a",
)

go_test(
name = "s2a_test",
size = "small",
Expand Down
6 changes: 3 additions & 3 deletions fallback/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ package(
)

go_library(
name = "s2a_fallback",
name = "fallback",
srcs = ["s2a_fallback.go"],
importpath = "github.com/google/s2a-go/fallback",
deps = [
Expand All @@ -29,7 +29,7 @@ go_library(
)

go_test(
name = "s2a_fallback_test",
name = "fallback_test",
srcs = ["s2a_fallback_test.go"],
embed = [":s2a_fallback"],
embed = [":fallback"],
)
2 changes: 1 addition & 1 deletion internal/v2/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ go_library(
],
importpath = "github.com/google/s2a-go/internal/v2",
deps = [
"//fallback:s2a_fallback",
"//fallback",
"//internal/handshaker/service",
"//internal/proto/common_go_proto",
"//internal/proto/v2/s2a_go_proto",
Expand Down

0 comments on commit f285005

Please sign in to comment.