Skip to content

Broken import for pgtype #2417

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
amoiseiev opened this issue Jul 7, 2023 · 2 comments · Fixed by #2418
Closed

Broken import for pgtype #2417

amoiseiev opened this issue Jul 7, 2023 · 2 comments · Fixed by #2418
Labels
bug Something isn't working triage New issues that hasn't been reviewed

Comments

@amoiseiev
Copy link

Version

Other

What happened?

sqlc 1.9.0

sqlc generates the following import in certain scenarios:

"github.com/tabbed/pqtype"

while leads to the following error running go mod tidy

    github.com/tabbed/pqtype: github.com/tabbed/pqtype@v0.2.0: parsing go.mod:
    module declares its path as: github.com/sqlc-dev/pqtype
            but was required as: github.com/tabbed/pqtype

Probably related to the namespace migration.

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?

macOS

What database engines are you using?

PostgreSQL

What type of code are you generating?

Go

@amoiseiev amoiseiev added bug Something isn't working triage New issues that hasn't been reviewed labels Jul 7, 2023
@andrewmbenton
Copy link
Collaborator

andrewmbenton commented Jul 7, 2023

Yep, this was overlooked when we moved sqlc-related things into the sqlc-dev GitHub organization. I'll have a PR up soon to fix this, and we may cut a new release. As a temporary workaround you can add a replace directive in your go.mod file like the following:

replace github.com/tabbed/pqtype v0.2.0 => github.com/sqlc-dev/pqtype v0.2.0.

@andrewmbenton
Copy link
Collaborator

This should be resolved as of the v1.19.1 release today.

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

Successfully merging a pull request may close this issue.

2 participants