Skip to content

codegen: use standard header for generated files #1406

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

Merged
merged 1 commit into from
Jul 22, 2023

Conversation

dolmen
Copy link
Collaborator

@dolmen dolmen commented Jul 3, 2023

Summary

Modify _codegen to use the standard header in generated Go sources.
See https://go.dev/s/generatedcode.

Motivation

This enables editor support for blocking manual changes in generated sources.

Use the standard header in generated Go sources.
See https://go.dev/s/generatedcode.
@dolmen
Copy link
Collaborator Author

dolmen commented Jul 6, 2023

#1338 already proposed that change. Mine also add references to the documentation of the standard.

@dolmen dolmen force-pushed the use-std-header-for-generated-code branch from e8c7a91 to 5ca0755 Compare July 6, 2023 09:06
@dolmen dolmen added the internal/codegen Change related to internal code generation label Jul 7, 2023
Copy link
Collaborator

@brackendawson brackendawson left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@dolmen dolmen merged commit 486eb6f into stretchr:master Jul 22, 2023
@dolmen dolmen deleted the use-std-header-for-generated-code branch March 5, 2024 13:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
internal/codegen Change related to internal code generation
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants