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

fix: correct event go files generator shell script #27

Merged
merged 1 commit into from
Oct 10, 2022

Conversation

randomnoise
Copy link
Contributor

@randomnoise randomnoise commented Oct 8, 2022

Related to #24.

When ./hack/add-events.sh && make fmt command is run, there are missing fields and functions in the newly generated files.

With this PR, when the command is run, 14 .go files in ./pkg/api are generated wihout any changes.

The changes for the rest of files in the directory are mostly additional subject content fields, subject field setter functions and specific to each event.

Copy link
Contributor

@afrittoli afrittoli left a comment

Choose a reason for hiding this comment

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

Thanks @randomnoise
In future we may create something that can deal with custom subject fields as well, but for now this is really helpful when adding new events.

As a follow up to this PR, perhaps we could document the need to update this file as part of SDK updates, or even have a CI job that checks that the modules create by this match with those in tree (at least to a certain degree).

@afrittoli afrittoli merged commit f8b7d36 into cdevents:main Oct 10, 2022
@randomnoise randomnoise deleted the fix-add-event-sh branch June 26, 2023 16:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants