Skip to content

Go renames don't work in config v2 #1977

Closed
@josharian

Description

@josharian

Version

1.15.0

What happened?

[I'm actually running 1.16.0, but the dropdown is missing that choice.]

I tried porting my config file from v1 to v2. Go renames and overrides stopped working.

To confirm that I didn't just make a config file mistake, I instrumented v2ParseConfig. I can confirm that my requested renames and overrides are present in the config field conf.SQL[0].Gen.Go (per the docs), but the downstream code is reading the configs from conf.Gen.Go, including later in v2ParseConfig.

Relevant log output

No response

Database schema

No response

SQL queries

No response

Configuration

No response

Playground URL

No response

What operating system are you using?

No response

What database engines are you using?

No response

What type of code are you generating?

Go

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingtriageNew issues that hasn't been reviewed

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions