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

Embed the schemas in generated files #48

Merged
merged 1 commit into from
Apr 4, 2023

Conversation

afrittoli
Copy link
Contributor

go:embed includes files at build time into a binary. It doesn't work when consuming the SDK as a go module, since the json files are not included in the module itself.

Instead of using embed, load the json file into the template file and embed it directly (at generate time) into the generated go files.

go:embed includes files at build time into a binary.
It doesn't work when consuming the SDK as a go module, since
the json files are not included in the module itself.

Instead of using embed, load the json file into the template
file and embed it directly (at generate time) into the
generated go files.

Signed-off-by: Andrea Frittoli <andrea.frittoli@gmail.com>
@afrittoli afrittoli merged commit af5880c into cdevents:main Apr 4, 2023
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.

1 participant