-
Notifications
You must be signed in to change notification settings - Fork 386
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Hard code dependency resolution bindings for @go_googleapis and WKTs
* proto.csv is a table that lists Well Known .proto files and all .proto files in @go_googleapis. For each proto import string, it lists the proto_library label, the Go import path, and the go_proto_library label. This was generated using an ad hoc Python script (not included). * Maps are generated from this file and incorporated into the dependency resolution logic in the proto and go extensions. When #12 is implemented, we can index rules in external repositories, and we won't need this. We need it for now because there's no clear correspondence between proto and Go import strings and the libraries that should be included. Related bazel-contrib/rules_go#1548
- Loading branch information
Jay Conrod
committed
Jul 2, 2018
1 parent
91e6a1e
commit 002a239
Showing
31 changed files
with
1,304 additions
and
172 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
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
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 |
---|---|---|
@@ -0,0 +1,15 @@ | ||
load("@io_bazel_rules_go//go:def.bzl", "go_binary", "go_library") | ||
|
||
go_library( | ||
name = "go_default_library", | ||
srcs = ["gen_known_imports.go"], | ||
importpath = "github.com/bazelbuild/bazel-gazelle/internal/language/proto/gen", | ||
visibility = ["//visibility:private"], | ||
deps = ["//internal/label:go_default_library"], | ||
) | ||
|
||
go_binary( | ||
name = "gen_known_imports", | ||
embed = [":go_default_library"], | ||
visibility = ["//:__subpackages__"], | ||
) |
Oops, something went wrong.