Skip to content

Conversation

andrewmbenton
Copy link
Collaborator

@andrewmbenton andrewmbenton commented Jan 4, 2024

This script no longer works, since test output now depends on a "context" and a significant amount of output relies on using a sqlc cloud managed database. So we should just remove the script.

Resolves #3097

@kyleconroy kyleconroy merged commit 023ab78 into main Jan 4, 2024
@kyleconroy kyleconroy deleted the andrew/remove-make-regen branch January 4, 2024 01:21
@Jille
Copy link
Contributor

Jille commented Jan 4, 2024

What's the expected workflow for testing changes? How do I verify a codegen change doesn't affect more than I expect?

@andrewmbenton
Copy link
Collaborator Author

The existing tests will still fail when run if you make a change that modifies their output.

The regen script was mostly used to bump the sqlc version string in code comments in test output. We have another way to do that now though.

To create expected output for a new test, you can make sqlc-dev and then manually run sqlc-dev generate in the test directory.

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.

make regen is broken
3 participants