Skip to content

Conversation

Solution
Copy link

@Solution Solution commented Sep 16, 2020

Hello guys,

i've added support for OPTIONAL feature flag which is coming with new version of protobuf, since the twirp it's not generating the .pb files, it doesn't need to implement anything in code generator, so it'll have no impact on gen-twirp.

Issue: .proto is a proto3 file that contains optional fields, but code generator protoc-gen-twirp hasn't been updated to support optional fields in proto3. Please ask the owner of this code generator to support proto3 optional.--twirp_out:

What i did:

  • updated dependencies - it was neccessary for newer version of .pb file of plugin
  • add supported feature to plugin response.

I tried to minimize the impact of upgrading the protobuf deps, but there's lot of changes since the last vendor update.

All tests passing.

//edit:
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

@Solution Solution force-pushed the feat/proto3-optional-support branch from ad00483 to aaa5ea5 Compare September 17, 2020 09:24
@Solution Solution changed the title Updated version of golang proto deps, forced PROTO3 optional feature … Forced proto3 OPTIONAL feature flag, deps updated Sep 17, 2020
@marioizquierdo
Copy link
Contributor

Is this related to issue #222 ?

@Solution
Copy link
Author

Solution commented Oct 8, 2020

@github-actions
Copy link

github-actions bot commented Dec 8, 2020

This PR is stale because it has been open for 60 days with no activity. Remove stale label / comment or this will be closed in 5 days

@3ventic
Copy link
Contributor

3ventic commented Dec 9, 2020

@Solution Could you include the license agreement from the pull request template? We'll try to have this reviewed in the coming weeks.

@Solution
Copy link
Author

@3ventic ofc, i'll do that.

@github-actions
Copy link

This PR is stale because it has been open for 60 days with no activity. Remove stale label / comment or this will be closed in 5 days

@marioizquierdo
Copy link
Contributor

There's an upcoming update with #304 to update to Protobuf APIV2. That will cleanup all the dependency updates that were done in this branch.

Could you isolate the changes needed to support the OPTIONAL feature flag in Twirp after the update to Protobuf APIV2 update is made?

@marioizquierdo
Copy link
Contributor

Closing this. The v8.0.0 release adds support for Protobuf APIv2 which allows Twirp services to use new features introduced on new versions of Protobuf for Go. LMK if there's anything else I'm missing. Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants