Skip to content

Commit c4039f4

Browse files
author
chenghan.ying
committed
use import alias to create go_default_library target name
1 parent 5607a83 commit c4039f4

115 files changed

Lines changed: 691 additions & 0 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

BUILD.bazel

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,13 @@ load("@gazelle//:def.bzl", "gazelle")
22

33
# gazelle:prefix github.com/uber/submitqueue
44

5+
# Add a go_default_library alias next to every native-named Go target so
6+
# consumers pinning go-code's naming convention (e.g. go-code's own
7+
# go_repository consumption with build_file_generation="off") can depend on
8+
# ":go_default_library" without renaming our own targets or breaking existing
9+
# consumers that use the native short names.
10+
# gazelle:go_naming_convention import_alias
11+
512
# Exclude nested worktrees (created under .claude/worktrees) so gazelle does not
613
# index them as duplicate rule definitions and corrupt the canonical BUILD files.
714
# gazelle:exclude .claude

api/base/change/protopb/BUILD.bazel

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,3 +10,9 @@ go_library(
1010
"@org_golang_google_protobuf//runtime/protoimpl",
1111
],
1212
)
13+
14+
alias(
15+
name = "go_default_library",
16+
actual = ":protopb",
17+
visibility = ["//visibility:public"],
18+
)

api/base/mergestrategy/protopb/BUILD.bazel

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,3 +10,9 @@ go_library(
1010
"@org_golang_google_protobuf//runtime/protoimpl",
1111
],
1212
)
13+
14+
alias(
15+
name = "go_default_library",
16+
actual = ":protopb",
17+
visibility = ["//visibility:public"],
18+
)

api/base/messagequeue/protopb/BUILD.bazel

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,3 +11,9 @@ go_library(
1111
"@org_golang_google_protobuf//types/descriptorpb",
1212
],
1313
)
14+
15+
alias(
16+
name = "go_default_library",
17+
actual = ":protopb",
18+
visibility = ["//visibility:public"],
19+
)

api/runway/messagequeue/BUILD.bazel

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,3 +30,9 @@ go_test(
3030
"@org_golang_google_protobuf//proto",
3131
],
3232
)
33+
34+
alias(
35+
name = "go_default_library",
36+
actual = ":messagequeue",
37+
visibility = ["//visibility:public"],
38+
)

api/runway/messagequeue/protopb/BUILD.bazel

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,3 +13,9 @@ go_library(
1313
"@org_golang_google_protobuf//runtime/protoimpl",
1414
],
1515
)
16+
17+
alias(
18+
name = "go_default_library",
19+
actual = ":protopb",
20+
visibility = ["//visibility:public"],
21+
)

api/runway/protopb/BUILD.bazel

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,3 +24,9 @@ go_library(
2424
"@org_uber_go_yarpc//encoding/protobuf/v2:protobuf",
2525
],
2626
)
27+
28+
alias(
29+
name = "go_default_library",
30+
actual = ":protopb",
31+
visibility = ["//visibility:public"],
32+
)

api/stovepipe/protopb/BUILD.bazel

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,3 +24,9 @@ go_library(
2424
"@org_uber_go_yarpc//encoding/protobuf/v2:protobuf",
2525
],
2626
)
27+
28+
alias(
29+
name = "go_default_library",
30+
actual = ":protopb",
31+
visibility = ["//visibility:public"],
32+
)

api/submitqueue/gateway/protopb/BUILD.bazel

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,3 +26,9 @@ go_library(
2626
"@org_uber_go_yarpc//encoding/protobuf/v2:protobuf",
2727
],
2828
)
29+
30+
alias(
31+
name = "go_default_library",
32+
actual = ":protopb",
33+
visibility = ["//visibility:public"],
34+
)

api/submitqueue/orchestrator/protopb/BUILD.bazel

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,3 +24,9 @@ go_library(
2424
"@org_uber_go_yarpc//encoding/protobuf/v2:protobuf",
2525
],
2626
)
27+
28+
alias(
29+
name = "go_default_library",
30+
actual = ":protopb",
31+
visibility = ["//visibility:public"],
32+
)

0 commit comments

Comments
 (0)