TheThingsIndustries / protoc-gen-fieldmask

Generate field mask utilities from proto files
Apache License 2.0
10 stars 3 forks source link

Question on forked dependencies #38

Closed hypnoglow closed 1 year ago

hypnoglow commented 4 years ago

There are 2 forked dependencies in use: https://github.com/TheThingsIndustries/protoc-gen-validate and https://github.com/TheThingsIndustries/protoc-gen-star

This causes troubles becase all consumers of protoc-gen-fieldmask module also have to add replace directives to their go.mod files, e.g.

replace github.com/lyft/protoc-gen-star => github.com/TheThingsIndustries/protoc-gen-star v0.4.14-gogo.4

replace github.com/envoyproxy/protoc-gen-validate => github.com/TheThingsIndustries/protoc-gen-validate v0.3.0-java-fieldmask.2

Is there any strong reason to keep using these forks? Are this forks long-running i.e. the updates will never land into upstream? If so, maybe we should rework them so only the required functionality is kept, and other is discarded, to break upstream dependency.

As another option, would it make sense to move required functionality from https://github.com/TheThingsIndustries/protoc-gen-validate directly to this repository and again remove the dependency? E.g. as protoc-gen-fieldmask supports only Go we don't need upstream features for Java and Python. Probably we could just copy required code here so it's all in one place.

WDYT?

Sorry if my questions make no sense, as I may have incorrect assumptions about these forks.

rvolosatovs commented 4 years ago

The forks are required, because:

codyaray commented 3 years ago

@rvolosatovs Do you think these protoc-gen-star will actually ever be merged? One was closed but I haven't seen if there was a replacement PR merged or anything

rvolosatovs commented 3 years ago

@rvolosatovs Do you think these protoc-gen-star will actually ever be merged? One was closed but I haven't seen if there was a replacement PR merged or anything

Not sure, but so far it does not look too promising. We will stop using gogo though, so hopefully we will be able to drop some forks. Refs https://github.com/TheThingsNetwork/lorawan-stack/issues/2798