svix / svix-webhooks

The enterprise-ready webhooks service 🦀
https://www.svix.com
MIT License
2.32k stars 159 forks source link

Libs(Go): remove modules no longer produced by the generator #1410

Closed svix-onelson closed 1 month ago

svix-onelson commented 1 month ago

Seems like we have a build up of modules added by the spec in a previous state, but nothing in our workflow to remove that stuff once no longer generated.

I deleted go/internal/openapi/*.go, re-ran the generator, then marked the missing files for removal in git.

An rm has been added to the regen script as well to help us keep on top of this. In a situation where sources are no longer being produced by the generator, your working copy will show missing files, which is a little clumsy. You need to remember to stage those deletions. For most cases git add -u will just do the right thing.