Remove implicit dependencies for leaf packages.

These packages don't actually use go_stateify or go_marshal, but end
up implicitly dependent on the respective packages due to our build
rules.

These unnecessary dependencies make them unusuable in certain contexts
due to circular dependency.

PiperOrigin-RevId: 312595738
This commit is contained in:
Rahat Mahmood
2020-05-20 18:35:32 -07:00
committed by gVisor bot
parent 5f3eeb4728
commit 49d2cf287d
4 changed files with 7 additions and 0 deletions
+2
View File
@@ -5,6 +5,8 @@ package(licenses = ["notice"])
go_library(
name = "linewriter",
srcs = ["linewriter.go"],
marshal = False,
stateify = False,
visibility = ["//visibility:public"],
deps = ["//pkg/sync"],
)
+2
View File
@@ -10,6 +10,8 @@ go_library(
"json_k8s.go",
"log.go",
],
marshal = False,
stateify = False,
visibility = [
"//visibility:public",
],
+1
View File
@@ -47,6 +47,7 @@ go_library(
"state.go",
"stats.go",
],
marshal = False,
stateify = False,
visibility = ["//:sandbox"],
deps = [
+2
View File
@@ -39,6 +39,8 @@ go_library(
"seqcount.go",
"sync.go",
],
marshal = False,
stateify = False,
)
go_test(