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

Added support for @generated marker #382

Merged
merged 4 commits into from
Aug 3, 2022
Merged

Conversation

anriha
Copy link
Contributor

@anriha anriha commented May 9, 2022

This PR adds support for @generated marker as specified at https://generated.at/ This marks generated code as such and allows it to be skipped in CI/CD. I am just not sure if this is the right format or if adding it after current message would be better.

Signed-off-by: Antonín Říha <riha.antonin@outlook.com>
@Gobot1234
Copy link
Collaborator

I think sticking to the same format as protoc might be a good idea, the # @generated part doesn't have to be on the first line does it? Could it be moved to below the plugin line?

Gobot1234
Gobot1234 previously approved these changes May 17, 2022
Signed-off-by: Antonín Říha <antonin.riha@protonmail.com>
@anriha
Copy link
Contributor Author

anriha commented May 17, 2022

Yes you are probably right, it seems that it just has to be somewhere at the beginning (not clearly defined). But from examples I found it seems that it can be below.

Gobot1234
Gobot1234 previously approved these changes May 17, 2022
@Gobot1234
Copy link
Collaborator

One more idea would be to regenerate the pre-compiled files in lib/google/protobuf

Signed-off-by: Antonín Říha <antonin.riha@protonmail.com>
@anriha
Copy link
Contributor Author

anriha commented Aug 2, 2022

I regenerated all the lib/google/protobuf files. Looking at the output it seems like the generated files had wrong documentation for attributes (before attribute definition, not after). So this also fixes that.

@Gobot1234
Copy link
Collaborator

Thanks, this looks great

@Gobot1234 Gobot1234 changed the title Added support for @generated Added support for @generated marker Aug 3, 2022
@Gobot1234 Gobot1234 merged commit f31d51c into danielgtaylor:master Aug 3, 2022
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.

2 participants