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

Using go_type to reference package with dash in the name generates compile error #3209

Open
DavidS-ovm opened this issue Feb 19, 2024 · 0 comments
Labels
bug Something isn't working triage New issues that hasn't been reviewed

Comments

@DavidS-ovm
Copy link

Version

1.25.0

What happened?

See error in the playground.

Interestingly, other overrides using import work fine with the same package:

          - column: "changes.status"
            go_type:
              import: "github.com/overmindtech/sdp-go"
              type: "ChangeStatus"

          # produces faulty code
          # - column: "changes.risk_progress_status"
          #   go_type: "[]github.com/overmindtech/sdp-go.RiskCalculationStatus_Status"

trying to add the array annotation to type also produces uncompilable code.

Relevant log output

No response

Database schema

No response

SQL queries

No response

Configuration

No response

Playground URL

https://play.sqlc.dev/p/1ee5c19ccb1376652bfc06403f17a9b465d3046009e619ac7f4ec0648ede97d1

What operating system are you using?

No response

What database engines are you using?

PostgreSQL

What type of code are you generating?

Go

@DavidS-ovm DavidS-ovm added bug Something isn't working triage New issues that hasn't been reviewed labels Feb 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working triage New issues that hasn't been reviewed
Projects
None yet
Development

No branches or pull requests

1 participant