Skip to content

Commit 9652357

Browse files
Fix name of protoc_gen_star_v2 repo (bufbuild#900)
When this project is used in a repo that uses Gazelle, the build fails with the following error: bufbuild#535 (comment) That error was introduced when protoc_gen_star was updated to v2 in bufbuild#783 and `dependencies.bzl` was (I believe) manually updated. Should gazelle be used to update `dependencies.bzl`, it would choose `com_github_lyft_protoc_gen_star_v2` as a name for the repo, as I showed here: alexbozhenko#1 This PR updates all references to that repo to use the correct name, which is expected by Gazelle. PR was created with: ``` sed -i 's/com_github_lyft_protoc_gen_star/com_github_lyft_protoc_gen_star_v2/g' $(rg -l com_github_lyft_protoc_gen_star) ``` Co-authored-by: Chris Roche <[email protected]>
1 parent 7e4a43c commit 9652357

File tree

14 files changed

+23
-23
lines changed

14 files changed

+23
-23
lines changed

BUILD.bazel

+2-2
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,8 @@ go_library(
2222
visibility = ["//visibility:private"],
2323
deps = [
2424
"//module",
25-
"@com_github_lyft_protoc_gen_star//:protoc-gen-star",
26-
"@com_github_lyft_protoc_gen_star//lang/go",
25+
"@com_github_lyft_protoc_gen_star_v2//:protoc-gen-star",
26+
"@com_github_lyft_protoc_gen_star_v2//lang/go",
2727
"@org_golang_google_protobuf//types/pluginpb",
2828
],
2929
)

cmd/protoc-gen-validate-cpp/BUILD

+2-2
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,8 @@ go_library(
2222
visibility = ["//visibility:private"],
2323
deps = [
2424
"//module",
25-
"@com_github_lyft_protoc_gen_star//:protoc-gen-star",
26-
"@com_github_lyft_protoc_gen_star//lang/go",
25+
"@com_github_lyft_protoc_gen_star_v2//:protoc-gen-star",
26+
"@com_github_lyft_protoc_gen_star_v2//lang/go",
2727
"@org_golang_google_protobuf//types/pluginpb",
2828
],
2929
)

cmd/protoc-gen-validate-go/BUILD

+2-2
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,8 @@ go_library(
2222
visibility = ["//visibility:private"],
2323
deps = [
2424
"//module",
25-
"@com_github_lyft_protoc_gen_star//:protoc-gen-star",
26-
"@com_github_lyft_protoc_gen_star//lang/go",
25+
"@com_github_lyft_protoc_gen_star_v2//:protoc-gen-star",
26+
"@com_github_lyft_protoc_gen_star_v2//lang/go",
2727
"@org_golang_google_protobuf//types/pluginpb",
2828
],
2929
)

cmd/protoc-gen-validate-java/BUILD

+2-2
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,8 @@ go_library(
2222
visibility = ["//visibility:private"],
2323
deps = [
2424
"//module",
25-
"@com_github_lyft_protoc_gen_star//:protoc-gen-star",
26-
"@com_github_lyft_protoc_gen_star//lang/go",
25+
"@com_github_lyft_protoc_gen_star_v2//:protoc-gen-star",
26+
"@com_github_lyft_protoc_gen_star_v2//lang/go",
2727
"@org_golang_google_protobuf//types/pluginpb",
2828
],
2929
)

dependencies.bzl

+1-1
Original file line numberDiff line numberDiff line change
@@ -218,7 +218,7 @@ def go_third_party():
218218
)
219219

220220
go_repository(
221-
name = "com_github_lyft_protoc_gen_star",
221+
name = "com_github_lyft_protoc_gen_star_v2",
222222
importpath = "github.com/lyft/protoc-gen-star/v2",
223223
sum = "h1:keaAo8hRuAT0O3DfJ/wM3rufbAjGeJ1lAtWZHDjKGB0=",
224224
version = "v2.0.1",

example-workspace/dependencies.bzl

+1-1
Original file line numberDiff line numberDiff line change
@@ -218,7 +218,7 @@ def go_third_party():
218218
)
219219

220220
go_repository(
221-
name = "com_github_lyft_protoc_gen_star",
221+
name = "com_github_lyft_protoc_gen_star_v2",
222222
importpath = "github.com/lyft/protoc-gen-star/v2",
223223
sum = "h1:erE0rdztuaDq3bpGifD95wfoPrSZc95nGA6tbiNYh6M=",
224224
version = "v0.6.1",

module/BUILD

+2-2
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@ go_library(
1212
"//templates",
1313
"//templates/java",
1414
"//validate:validate_go",
15-
"@com_github_lyft_protoc_gen_star//:protoc-gen-star",
16-
"@com_github_lyft_protoc_gen_star//lang/go",
15+
"@com_github_lyft_protoc_gen_star_v2//:protoc-gen-star",
16+
"@com_github_lyft_protoc_gen_star_v2//lang/go",
1717
"@org_golang_google_protobuf//proto",
1818
"@org_golang_google_protobuf//types/known/durationpb",
1919
"@org_golang_google_protobuf//types/known/timestamppb",

templates/BUILD.bazel

+2-2
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@ go_library(
1111
"//templates/go",
1212
"//templates/java",
1313
"//templates/shared",
14-
"@com_github_lyft_protoc_gen_star//:protoc-gen-star",
15-
"@com_github_lyft_protoc_gen_star//lang/go",
14+
"@com_github_lyft_protoc_gen_star_v2//:protoc-gen-star",
15+
"@com_github_lyft_protoc_gen_star_v2//lang/go",
1616
],
1717
)
1818

templates/cc/BUILD.bazel

+2-2
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,8 @@ go_library(
2828
deps = [
2929
"//templates/shared",
3030
"@com_github_iancoleman_strcase//:strcase",
31-
"@com_github_lyft_protoc_gen_star//:protoc-gen-star",
32-
"@com_github_lyft_protoc_gen_star//lang/go",
31+
"@com_github_lyft_protoc_gen_star_v2//:protoc-gen-star",
32+
"@com_github_lyft_protoc_gen_star_v2//lang/go",
3333
"@org_golang_google_protobuf//types/known/durationpb",
3434
"@org_golang_google_protobuf//types/known/timestamppb",
3535
],

templates/ccnop/BUILD.bazel

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ go_library(
1010
visibility = ["//visibility:public"],
1111
deps = [
1212
"//templates/cc",
13-
"@com_github_lyft_protoc_gen_star//:protoc-gen-star",
13+
"@com_github_lyft_protoc_gen_star_v2//:protoc-gen-star",
1414
],
1515
)
1616

templates/go/BUILD.bazel

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ go_library(
1414
visibility = ["//visibility:public"],
1515
deps = [
1616
"//templates/goshared",
17-
"@com_github_lyft_protoc_gen_star//:protoc-gen-star",
17+
"@com_github_lyft_protoc_gen_star_v2//:protoc-gen-star",
1818
],
1919
)
2020

templates/goshared/BUILD.bazel

+2-2
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,8 @@ go_library(
2626
deps = [
2727
"//templates/shared",
2828
"@com_github_iancoleman_strcase//:strcase",
29-
"@com_github_lyft_protoc_gen_star//:protoc-gen-star",
30-
"@com_github_lyft_protoc_gen_star//lang/go",
29+
"@com_github_lyft_protoc_gen_star_v2//:protoc-gen-star",
30+
"@com_github_lyft_protoc_gen_star_v2//lang/go",
3131
"@org_golang_google_protobuf//types/known/durationpb",
3232
"@org_golang_google_protobuf//types/known/timestamppb",
3333
],

templates/java/BUILD.bazel

+2-2
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,8 @@ go_library(
2828
deps = [
2929
"//templates/shared",
3030
"@com_github_iancoleman_strcase//:strcase",
31-
"@com_github_lyft_protoc_gen_star//:protoc-gen-star",
32-
"@com_github_lyft_protoc_gen_star//lang/go",
31+
"@com_github_lyft_protoc_gen_star_v2//:protoc-gen-star",
32+
"@com_github_lyft_protoc_gen_star_v2//lang/go",
3333
"@org_golang_google_protobuf//types/known/durationpb",
3434
"@org_golang_google_protobuf//types/known/timestamppb",
3535
],

templates/shared/BUILD.bazel

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ go_library(
1414
visibility = ["//visibility:public"],
1515
deps = [
1616
"//validate:validate_go",
17-
"@com_github_lyft_protoc_gen_star//:protoc-gen-star",
17+
"@com_github_lyft_protoc_gen_star_v2//:protoc-gen-star",
1818
"@org_golang_google_protobuf//proto",
1919
],
2020
)

0 commit comments

Comments
 (0)