Skip to content

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

Open
@andrwkoval

Description

@andrwkoval

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions