Skip to content

Commit 6b0965e

Browse files
authored
Normalize BUILD files with Gazelle (#147)
1 parent 1802493 commit 6b0965e

File tree

16 files changed

+112
-62
lines changed

16 files changed

+112
-62
lines changed

WORKSPACE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ go_register_toolchains(
129129
)
130130

131131
# Gazelle dependency management support
132-
load("@bazel_gazelle//:deps.bzl", "gazelle_dependencies", "go_repository")
132+
load("@bazel_gazelle//:deps.bzl", "gazelle_dependencies")
133133

134134
# Pull in external dependencies:
135135
# gazelle:repository_macro go_deps.bzl%go_dependencies

go/agentport/BUILD.bazel

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,11 @@ go_library(
55
srcs = ["io.go"],
66
importpath = "github.com/google/chrome-ssh-agent/go/agentport",
77
visibility = ["//visibility:public"],
8-
deps = [
9-
"//go/jsutil",
10-
"@com_github_norunners_vert//:vert",
11-
],
8+
deps = select({
9+
"@io_bazel_rules_go//go/platform:js": [
10+
"//go/jsutil",
11+
"@com_github_norunners_vert//:vert",
12+
],
13+
"//conditions:default": [],
14+
}),
1215
)

go/app/BUILD.bazel

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,12 @@ go_library(
99
],
1010
importpath = "github.com/google/chrome-ssh-agent/go/app",
1111
visibility = ["//visibility:public"],
12-
deps = [
13-
"//go/jsutil",
14-
],
12+
deps = select({
13+
"@io_bazel_rules_go//go/platform:js": [
14+
"//go/jsutil",
15+
],
16+
"//conditions:default": [],
17+
}),
1518
)
1619

1720
go_wasm_test(

go/background/BUILD.bazel

Lines changed: 11 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -7,14 +7,17 @@ go_library(
77
srcs = ["main.go"],
88
importpath = "github.com/google/chrome-ssh-agent/go/background",
99
visibility = ["//visibility:private"],
10-
deps = [
11-
"//go/agentport",
12-
"//go/app",
13-
"//go/jsutil",
14-
"//go/keys",
15-
"//go/storage",
16-
"@org_golang_x_crypto//ssh/agent",
17-
],
10+
deps = select({
11+
"@io_bazel_rules_go//go/platform:js": [
12+
"//go/agentport",
13+
"//go/app",
14+
"//go/jsutil",
15+
"//go/keys",
16+
"//go/storage",
17+
"@org_golang_x_crypto//ssh/agent",
18+
],
19+
"//conditions:default": [],
20+
}),
1821
)
1922

2023
go_wasm_binary(

go/dom/BUILD.bazel

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,12 @@ go_library(
99
],
1010
importpath = "github.com/google/chrome-ssh-agent/go/dom",
1111
visibility = ["//visibility:public"],
12-
deps = ["//go/jsutil"],
12+
deps = select({
13+
"@io_bazel_rules_go//go/platform:js": [
14+
"//go/jsutil",
15+
],
16+
"//conditions:default": [],
17+
}),
1318
)
1419

1520
go_wasm_test(

go/dom/testing/BUILD.bazel

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,5 +6,10 @@ go_library(
66
srcs = ["testing.go"],
77
importpath = "github.com/google/chrome-ssh-agent/go/dom/testing",
88
visibility = ["//visibility:public"],
9-
deps = ["//go/jsutil"],
9+
deps = select({
10+
"@io_bazel_rules_go//go/platform:js": [
11+
"//go/jsutil",
12+
],
13+
"//conditions:default": [],
14+
}),
1015
)

go/jsutil/testing/BUILD.bazel

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,10 @@ go_library(
77
srcs = ["promise.go"],
88
importpath = "github.com/google/chrome-ssh-agent/go/jsutil/testing",
99
visibility = ["//visibility:public"],
10-
deps = [
11-
"//go/jsutil",
12-
],
10+
deps = select({
11+
"@io_bazel_rules_go//go/platform:js": [
12+
"//go/jsutil",
13+
],
14+
"//conditions:default": [],
15+
}),
1316
)

go/keys/BUILD.bazel

Lines changed: 12 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -9,15 +9,18 @@ go_library(
99
],
1010
importpath = "github.com/google/chrome-ssh-agent/go/keys",
1111
visibility = ["//visibility:public"],
12-
deps = [
13-
"//go/jsutil",
14-
"//go/message",
15-
"//go/storage",
16-
"@com_github_norunners_vert//:vert",
17-
"@com_github_youmark_pkcs8//:pkcs8",
18-
"@org_golang_x_crypto//ssh",
19-
"@org_golang_x_crypto//ssh/agent",
20-
],
12+
deps = select({
13+
"@io_bazel_rules_go//go/platform:js": [
14+
"//go/jsutil",
15+
"//go/message",
16+
"//go/storage",
17+
"@com_github_norunners_vert//:vert",
18+
"@com_github_youmark_pkcs8//:pkcs8",
19+
"@org_golang_x_crypto//ssh",
20+
"@org_golang_x_crypto//ssh/agent",
21+
],
22+
"//conditions:default": [],
23+
}),
2124
)
2225

2326
go_wasm_test(

go/lock/BUILD.bazel

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,12 @@ go_library(
66
srcs = ["lock.go"],
77
importpath = "github.com/google/chrome-ssh-agent/go/lock",
88
visibility = ["//visibility:public"],
9-
deps = ["//go/jsutil"],
9+
deps = select({
10+
"@io_bazel_rules_go//go/platform:js": [
11+
"//go/jsutil",
12+
],
13+
"//conditions:default": [],
14+
}),
1015
)
1116

1217
go_wasm_test(

go/message/BUILD.bazel

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,5 +6,10 @@ go_library(
66
srcs = ["sender.go"],
77
importpath = "github.com/google/chrome-ssh-agent/go/message",
88
visibility = ["//visibility:public"],
9-
deps = ["//go/jsutil"],
9+
deps = select({
10+
"@io_bazel_rules_go//go/platform:js": [
11+
"//go/jsutil",
12+
],
13+
"//conditions:default": [],
14+
}),
1015
)

0 commit comments

Comments
 (0)