protobuf-go/internal
Joe Tsai 9712361eda all: rely on dynamic dependency check for genproto
The genproto module incurs an unfortunate amount of dependency bloat
since it has a relatively large set of transitive dependencies.
Even though these are brought in as a weak dependency
(i.e., there is no hard code dependency on genproto),
it complicates dependency inspection since users need to vet
modules that they may not actually be using.

Avoid this weak dependency and instead rely on a dynamic check
to ensure that a sufficiently new version of genproto is used.
While it can't statically prevent old versions of genproto from being
linked into a binary, it guarantees that it will panic at init
with a helpful message on what's wrong.

Change-Id: I2b5a9759a5cd4c4c57aced54278502b1b6352ba7
Reviewed-on: https://go-review.googlesource.com/c/protobuf/+/262679
Trust: Joe Tsai <thebrokentoaster@gmail.com>
Reviewed-by: Damien Neil <dneil@google.com>
2020-10-15 21:46:17 +00:00
..
benchmarks all: upgrade protobuf to v3.11.4 2020-03-13 19:49:20 +00:00
cmd reflect/protoreflect: improve source information usability 2020-07-23 21:50:46 +00:00
conformance encoding/protojson: add better validation to FieldMask serialization 2020-06-12 06:33:55 +00:00
descfmt reflect/protoreflect: add FieldDescriptor.TextName 2020-07-08 23:23:57 +00:00
descopts
detrand internal/impl: introduce instability to protoreflect.Message.Range order 2020-07-01 17:34:30 +00:00
encoding internal/encoding/messageset: fix spelling typo 2020-10-07 22:15:00 +00:00
errors all: scrub all TODOs 2020-02-10 19:28:48 +00:00
filedesc reflect/protoreflect: improve source information usability 2020-07-23 21:50:46 +00:00
filetype reflect/protoregistry: add (*Types).Register{Message,Enum,Extension} 2019-10-31 16:23:42 +00:00
flags all: fix golint violations 2020-03-21 00:04:20 +00:00
fuzz internal/fuzz/wirefuzz: add test to verify initialization checks 2020-05-01 18:43:38 +00:00
fuzztest internal/fuzztest: set cap to len on test byte slice 2020-02-05 22:46:04 +00:00
genid cmd/protoc-gen-go: generate package documentation for well-known types 2020-06-22 19:32:21 +00:00
impl internal/impl: add runtime support for *[]byte unknown representation 2020-07-28 16:36:39 +00:00
msgfmt internal/msgfmt: fix formatting of negative Duration 2020-08-08 01:07:43 +00:00
order internal/order: add a package for ordered iteration over messages and maps 2020-07-01 18:57:38 +00:00
pragma all: add a test for copyright headers 2020-02-21 18:41:46 +00:00
protobuild all: fix tests for 32-bit architectures 2020-07-08 22:37:09 +00:00
protolegacy all: add a test for copyright headers 2020-02-21 18:41:46 +00:00
set
strs compiler/protogen, internal/strs, internal/impl: expose enum Go name derivation 2019-08-26 17:49:17 +00:00
testprotos reflect/protoreflect: add MessageFieldTypes 2020-07-23 21:24:58 +00:00
version all: start v1.25.0-devel 2020-06-22 20:32:22 +00:00
weakdeps all: rely on dynamic dependency check for genproto 2020-10-15 21:46:17 +00:00