I'm trying to apply migrations against postgres database like this: [rm@cf ~]% migrate -path /tmp/sq -database "postgres://xx:xx@xxx:xx/xx" up error: failed to open database: database driver: unknown driver postgres (forgotten import?) So it looks like postgres support isn't compiled. How to fix that? By the way, shouldn't this port belong to databases category? [rm@cf ~]% pkg info gomigrate gomigrate-4.18.2_1 Name : gomigrate Version : 4.18.2_1 Installed on : Fri Mar 21 11:22:12 2025 MSK FreeBSD cf 15.0-CURRENT
A commit in branch main references this bug: URL: https://cgit.FreeBSD.org/ports/commit/?id=861a574647fcbc5555889bcb61f637b42b45359c commit 861a574647fcbc5555889bcb61f637b42b45359c Author: Gabriel M. Dutra <dutra@FreeBSD.org> AuthorDate: 2025-05-02 17:33:29 +0000 Commit: Gabriel M. Dutra <dutra@FreeBSD.org> CommitDate: 2025-05-02 17:40:52 +0000 devel/gomigrate: Enable all databases and files source The gomigrate controls each database support using tags on build. This commit adds ldflag to fix the version and to enable all databases. PR: 285572 Reported by: Ruslan Makhmatkhanov <rm@FreeBSD.org> devel/gomigrate/Makefile | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-)
Thank you!