Skip to content

Libs(Rust): track sources produced by codegen in git #1598

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
Dec 31, 2024

Conversation

svix-onelson
Copy link
Contributor

Motivated by the desire to simplify the build/release for this SDK and the CLI.

Additionally, tracking codegen files in the Go SDK has proven helpful for us in the past as our spec has evolved. Having these sources tracked as well can give us a "second opinion" when changes bubble up.

A similar problem as seen in the Go SDK exists for any other that tracks their codegen sources in git; stale files have to be explicitly removed. Previously this would happen naturally when starting from a clean working copy, but no longer. To avoid a build up of sources that are orphaned by spec changes, the regen script now deletes files before generating new ones.

Svix maintainers take note: action is required in this situation. Look for the removals by checking git status then stage the deletions before pushing your commit up!

Motivated by the desire to simplify the build/release for this SDK and
the CLI.

Additionally, tracking codegen files in the Go SDK has proven helpful
for us in the past as our spec has evolved. Having these sources tracked
as well can give us a "second opinion" when changes bubble up.

A similar problem as seen in the Go SDK exists for any other that tracks
their codegen sources in git; stale files have to be explicitly removed.
Previously this would happen naturally when starting from a clean
working copy, but no longer. To avoid a build up of sources that are
orphaned by spec changes, the regen script now deletes files before
generating new ones.

Svix maintainers take note: action is required in this situation. Look
for the removals by checking `git status` then stage the deletions
before pushing your commit up!
@svix-onelson svix-onelson requested a review from a team as a code owner December 31, 2024 01:23
@svix-onelson svix-onelson merged commit 84a780e into main Dec 31, 2024
7 checks passed
@svix-onelson svix-onelson deleted the onelson/track-codegen-sources-rust branch December 31, 2024 17:35
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