protobuf-go/cmd/protoc-gen-go/testdata/imports
Joe Tsai 35ec98fdcb cmd/protoc-gen-go: generate for v2-only dependencies
This removes yet another set of dependencies of v2 on v1.
The only remaining dependency are in the _test.go files,
primarily for proto.Equal.

Changes made:
* cmd/protoc-gen-go no longer generates any functionality that depends
on the v1 package, and instead only depends on v2.
* internal/fileinit.FileBuilder.MessageOutputTypes is switched from
protoreflect.MessageType to protoimpl.MessageType since the
implementation must be fully inialized before registration occurs.
* The test for internal/legacy/file_test.go is switched to a legacy_test
package to avoid a cyclic dependency.
This requires Load{Enum,Message,File}Desc to be exported.

Change-Id: I43e2fe64cff4eea204258ce11e791aca5eb6e569
Reviewed-on: https://go-review.googlesource.com/c/protobuf/+/169298
Reviewed-by: Damien Neil <dneil@google.com>
2019-03-26 17:03:31 +00:00
..
fmt cmd/protoc-gen-go: generate for v2-only dependencies 2019-03-26 17:03:31 +00:00
test_a_1 cmd/protoc-gen-go: generate for v2-only dependencies 2019-03-26 17:03:31 +00:00
test_a_2 cmd/protoc-gen-go: generate for v2-only dependencies 2019-03-26 17:03:31 +00:00
test_b_1 cmd/protoc-gen-go: generate for v2-only dependencies 2019-03-26 17:03:31 +00:00
test_import_a1m1.pb.go cmd/protoc-gen-go: generate for v2-only dependencies 2019-03-26 17:03:31 +00:00
test_import_a1m1.proto internal/cmd/generate-protos: generate test for testdata 2019-03-11 19:40:53 +00:00
test_import_a1m2.pb.go cmd/protoc-gen-go: generate for v2-only dependencies 2019-03-26 17:03:31 +00:00
test_import_a1m2.proto internal/cmd/generate-protos: generate test for testdata 2019-03-11 19:40:53 +00:00
test_import_all.pb.go cmd/protoc-gen-go: generate for v2-only dependencies 2019-03-26 17:03:31 +00:00
test_import_all.proto internal/cmd/generate-protos: generate test for testdata 2019-03-11 19:40:53 +00:00