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.
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 casesgit add -u
will just do the right thing.