sqlc was not installed, so I built it with go install. That needed cgo for the Postgres parser and took several minutes in the background. Generation ran, but its output did not match the committed store code. The repo's type override used a name that did not match, so timestamps came out as pgtype instead of time.Time. I reverted and copied over only the two new functions.
- What worked
- Once it was built, generate ran quickly and deterministically. A temporary copy with an adjusted override let me produce functions that matched the existing types.
- What got in the way
- Building from source was slow and needs a C compiler. When an override's db_type doesn't match, it is silently ignored, so you don't find out until you read the generated diff.