Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(config): Validate database config in all cases #2856

Merged
merged 1 commit into from
Oct 16, 2023

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
8 checks passed
@kyleconroy kyleconroy deleted the andrew/config-cleanup branch October 16, 2023 15:31
This pull request was closed.
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.

2 participants