-
Notifications
You must be signed in to change notification settings - Fork 583
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update bazel build to use new naming convention (#471)
* update the bazel build Signed-off-by: Tanya Bouman <tanyabouman@gmail.com> * add alias for validate to validate_go Signed-off-by: Tanya Bouman <tanyabouman@gmail.com> * add deprecation notices for go_default_library aliases Signed-off-by: Tanya Bouman <tanyabouman@gmail.com> Co-authored-by: Alex Konradi <akonradi@google.com>
- Loading branch information
1 parent
d9cbdb5
commit 4f41f10
Showing
11 changed files
with
135 additions
and
54 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,28 @@ | ||
load("@io_bazel_rules_go//go:def.bzl", "go_library") | ||
|
||
go_library( | ||
name = "go_default_library", | ||
name = "module", | ||
srcs = [ | ||
"checker.go", | ||
"validate.go", | ||
], | ||
importpath = "github.com/envoyproxy/protoc-gen-validate/module", | ||
visibility = ["//visibility:public"], | ||
deps = [ | ||
"//templates:go_default_library", | ||
"//templates/java:go_default_library", | ||
"//validate:go_default_library", # keep | ||
"@com_github_lyft_protoc_gen_star//:go_default_library", | ||
"@com_github_lyft_protoc_gen_star//lang/go:go_default_library", | ||
"@org_golang_google_protobuf//proto:go_default_library", | ||
"@org_golang_google_protobuf//types/known/durationpb:go_default_library", | ||
"@org_golang_google_protobuf//types/known/timestamppb:go_default_library", | ||
"//templates", | ||
"//templates/java", | ||
"//validate", | ||
"@com_github_lyft_protoc_gen_star//:protoc-gen-star", | ||
"@com_github_lyft_protoc_gen_star//lang/go", | ||
"@org_golang_google_protobuf//proto", | ||
"@org_golang_google_protobuf//types/known/durationpb", | ||
"@org_golang_google_protobuf//types/known/timestamppb", | ||
], | ||
) | ||
|
||
alias( | ||
name = "go_default_library", | ||
actual = ":module", | ||
deprecation = "Use :module instead of :go_default_library. Details about the new naming convention: https://github.com/bazelbuild/bazel-gazelle/pull/863", | ||
visibility = ["//visibility:public"], | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,23 @@ | ||
load("@io_bazel_rules_go//go:def.bzl", "go_library") | ||
|
||
go_library( | ||
name = "go_default_library", | ||
name = "templates", | ||
srcs = ["pkg.go"], | ||
importpath = "github.com/envoyproxy/protoc-gen-validate/templates", | ||
visibility = ["//visibility:public"], | ||
deps = [ | ||
"//templates/cc:go_default_library", | ||
"//templates/go:go_default_library", | ||
"//templates/java:go_default_library", | ||
"//templates/shared:go_default_library", | ||
"@com_github_lyft_protoc_gen_star//:go_default_library", | ||
"@com_github_lyft_protoc_gen_star//lang/go:go_default_library", | ||
"//templates/cc", | ||
"//templates/go", | ||
"//templates/java", | ||
"//templates/shared", | ||
"@com_github_lyft_protoc_gen_star//:protoc-gen-star", | ||
"@com_github_lyft_protoc_gen_star//lang/go", | ||
], | ||
) | ||
|
||
alias( | ||
name = "go_default_library", | ||
actual = ":templates", | ||
deprecation = "Use :templates instead of :go_default_library. Details about the new naming convention: https://github.com/bazelbuild/bazel-gazelle/pull/863", | ||
visibility = ["//visibility:public"], | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters