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

macOS builds seem to have a CGO issue #18

Open
tlhunter opened this issue Aug 13, 2023 · 1 comment
Open

macOS builds seem to have a CGO issue #18

tlhunter opened this issue Aug 13, 2023 · 1 comment
Labels
bug Something isn't working

Comments

@tlhunter
Copy link
Owner

tlhunter commented Aug 13, 2023

Running the sqlite tests using the mig binaries available in the releases produces this output:

{
  "error":"unable to tell if 'migrations' table exists!",
  "error_details":"Binary was compiled with 'CGO_ENABLED=0', go-sqlite3 requires cgo to work. This is a stub",
  "code":"unable_check_migrations"
}

However, when building locally on macOS the resulting binary is fine.

This means that the mig release binaries don't support SQLite. However MySQL and PostgreSQL both work fine.

Discovered while working on #16.

@tlhunter tlhunter added the bug Something isn't working label Aug 13, 2023
@tlhunter
Copy link
Owner Author

Simply adding CGO_ENABLED=1 won't fix it: https://github.com/tlhunter/mig/actions/runs/5850743699/job/15860572068

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant