Tests to ensure the basic features of go_proto_library are working.
Contents
Checks that go_proto_library can embed rules that provide `GoLibrary`_.
Checks that go_proto_library can import a proto dependency that is embedded in a go_library. Verifies #1422.
Checks that go_proto_library can build proto_library
with
import_prefix
and strip_import_prefix
.
Checks that the gogo gofast compiler plugins build and link. In particular, these plugins only depoend on github.com/golang/protobuf.
Checks that the gogofast compiler plugins build and link. In particular, these plugins depend on both github.com/gogo/protobuf and github.com/golang/protobuf.
Checks that go_proto_library generates files with a package name based on
importpath
, not the proto package, when option go_package
is not given.
This changed in protobuf v1.26.0: the import path must either be specified
with an option go_package
in each proto file or with an M
flag passed
in from go_proto_library
. Previously, the Go package name was derived from
the proto package name. Previously verified #1596.
Checks that most of the well known types in //proto/wkt
are wrappers
for packages in @org_golang_google_protobuf
. The proto types should be
type aliases.
Checks that packages generated by go_proto_library can be imported using one of the strings
listed in importpath_aliases
.