Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Question on forked dependencies #38

Closed
hypnoglow opened this issue Mar 24, 2020 · 3 comments
Closed

Question on forked dependencies #38

hypnoglow opened this issue Mar 24, 2020 · 3 comments

Comments

@hypnoglow
Copy link

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 rvolosatovs self-assigned this May 1, 2020
@rvolosatovs rvolosatovs added this to the Backlog milestone May 1, 2020
@rvolosatovs
Copy link
Contributor

The forks are required, because:

@codyaray
Copy link

@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
Copy link
Contributor

@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 TheThingsNetwork/lorawan-stack#2798

@htdvisser htdvisser removed this from the Backlog milestone Jun 8, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants