Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Motivation
The current version of gripmock is requiring a declaration of
option go_package
. Thus I expect many issues since the user of gripmock is not always a Golang user.Technically, these changes are not making gripmock able to run without
option go_package
, but it will generate the declaration of it based on the.proto
files provided. Since it only uses a simple bash script to do that, I will release this version as a beta release before making a stable release.Changelist
fix_gopackage.sh
is the core change here, it will insert the go_package declaration if none of the provided.protos
has it. If one of them has it, it will return, if all of the files have it then will be skipped.example/no-gopackage
will provided an example also a test for this new feature.