Skip to content

fix: sql unknown driver when using migration - #12

Open
twxia wants to merge 1 commit into
gmhafiz:masterfrom
twxia:patch-2
Open

twxia wants to merge 1 commit into
gmhafiz:masterfrom
twxia:patch-2

Conversation

@twxia

@twxia twxia commented Mar 14, 2025

Copy link
Copy Markdown
Contributor

fix: sql: unknown driver "" (forgotten import?)
@gmhafiz

gmhafiz commented Mar 15, 2025

Copy link
Copy Markdown
Owner

Thank you for opening this PR. I re-run the commands from the #quickstart section of readme and couldn't reproduce this error.

Could you please give me the steps you took to produce this issue?

@twxia

twxia commented Mar 18, 2025

Copy link
Copy Markdown
Contributor Author

Hi @gmhafiz, I got this issue when running task migrate.

@gmhafiz

gmhafiz commented Jun 15, 2025

Copy link
Copy Markdown
Owner

Running task migrate runs the goose cli directly and not call sqlx.go

I cloned this repo in a fresh VM to try to reproduce this bug by following the readme.md file. Both task migrate and go run cmd/migrate/main.go are working fine for me.

I could have missed something. Could you verify which command you ran, and ensure values in your .env or exported environment variables are correct? My .env is a straight up copy from env.example file.

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants