tlhunter / mig

The Universal Database Migration Runner. Distributed as precompiled binaries.

Home Page:https://thomashunter.name/posts/2023-01-01-mig-the-universal-database-migration-runner

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

macOS builds seem to have a CGO issue

tlhunter opened this issue · comments

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.