Skip to content

Generated copyfrom.go file doesn't include the output_files_suffix. #2337

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

Closed
optimality opened this issue Jun 17, 2023 · 1 comment
Closed
Milestone

Comments

@optimality
Copy link

Version

1.18.0

What happened?

I have sql.gen.go.output_files_suffix set to .gen in my sqlc.yaml file, but the generated copyfrom.go doesn't include the suffix. This makes it appear as if it's a human-created file.

Relevant log output

No response

Database schema

No response

SQL queries

No response

Configuration

version: 2
sql:
  - schema: migrations
    queries: queries
    engine: postgresql
    gen:
      go:
        out: queries
        emit_interface: true
        output_files_suffix: .gen
        output_db_file_name: db.gen.go
        output_models_file_name: models.gen.go
        output_querier_file_name: querier.gen.go
        sql_package: pgx/v4

Playground URL

No response

What operating system are you using?

Linux

What database engines are you using?

PostgreSQL

What type of code are you generating?

Go

@optimality optimality added bug Something isn't working triage New issues that hasn't been reviewed labels Jun 17, 2023
@kyleconroy kyleconroy added 📚 postgresql 🔧 golang 💻 linux and removed triage New issues that hasn't been reviewed labels Jul 6, 2023
@kyleconroy kyleconroy added this to the 1.23.0 milestone Sep 26, 2023
@kyleconroy
Copy link
Collaborator

Fixed in #2727

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants