I ran into this issue today, the problem occurs when building with the oss tag in this file:
It calls sql.Open with the requested driver, but then calls sqlite.Migrate on the non-sqlite database.
The fix is probably either to return an error if driver is set to anything other than "sqlite", or call sql.Open with "sqlite" instead of driver.