Skip to content

Conversation

@andrewmbenton
Copy link
Collaborator

A continue in Validate was preventing validation in cases where no Go codegen is configured.

  • Move some Go-specific config validation into codegen package
  • Update config validation test
  • Remove some dead code
A `continue` in `Validate` was preventing validation in cases where
no Go codegen is configured.

* Move some Go-specific config validation into codegen package
* Update config validation test
* Remove some dead code
Comment on lines -7 to -10
sqlGo := sql.Gen.Go
if sqlGo == nil {
continue
}
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The offending continue. The Go-specific options validation below moved into codegen.

@kyleconroy kyleconroy merged commit 651cafd into main Oct 16, 2023
@kyleconroy kyleconroy deleted the andrew/config-cleanup branch October 16, 2023 15:31
alfonsodev pushed a commit to ExponentiaTeam/sqlc that referenced this pull request Oct 13, 2025
A `continue` in `Validate` was preventing validation in cases where
no Go codegen is configured.

* Move some Go-specific config validation into codegen package
* Update config validation test
* Remove some dead code
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

3 participants