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

"Error parsing sqlc.yaml" when generating files #3007

Open
andrwkoval opened this issue Nov 23, 2023 · 4 comments
Open

"Error parsing sqlc.yaml" when generating files #3007

andrwkoval opened this issue Nov 23, 2023 · 4 comments
Labels
bug Something isn't working regression

Comments

@andrwkoval
Copy link

Version

1.24.0

What happened?

Can't generate the files, because it seems it can't unmarshal the sqlc.yaml file.

Relevant log output

go run -mod=mod github.com/sqlc-dev/sqlc/cmd/sqlc generate
go: finding module for package github.com/sqlc-dev/sqlc/cmd/sqlc
error parsing sqlc.yaml: yaml: unmarshal errors:
  line 15: field output_querier_file_name not found in type opts.Options
exit status 1

Database schema

Not relevant.

SQL queries

Not relevant.

Configuration

Not a full configuration, just the problematic part

sql:
  - gen:
      go:
        output_db_file_name: "db.gen.go"
        output_models_file_name: "models.gen.go"
        output_querier_file_name: "querier.gen.go"
        output_files_suffix: ".gen.go"

Playground URL

No response

What operating system are you using?

macOS

What database engines are you using?

PostgreSQL

What type of code are you generating?

Go

@andrwkoval andrwkoval added bug Something isn't working triage New issues that hasn't been reviewed labels Nov 23, 2023
@kyleconroy kyleconroy added regression and removed triage New issues that hasn't been reviewed labels Nov 24, 2023
@kyleconroy
Copy link
Collaborator

Fixed by #3006

@kyleconroy
Copy link
Collaborator

The fix has been merged, but going to keep this open until we do a release that contains the fix.

@connor11528
Copy link

Is there a workaround currently or a timeline about when the release with the fix will go out?

I tried rolling back my version but no dice.. 🤔

brew install sqlc@1.23.0
Warning: No available formula with the name "sqlc@1.23.0".
==> Searching for similarly named formulae and casks...
Error: No formulae or casks found for sqlc@1.23.0.

@ericbock
Copy link

You should be able to rename

output_querier_file_name to output_queries_file_name

in your sqlc.yaml file until the update is released.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working regression
Projects
None yet
Development

No branches or pull requests

4 participants