Bug 285572 - devel/gomigrate: unknown driver postgres
Summary: devel/gomigrate: unknown driver postgres
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Only Me
Assignee: Gabriel M. Dutra
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2025-03-21 08:34 UTC by Ruslan Makhmatkhanov
Modified: 2025-05-09 20:32 UTC (History)
0 users

See Also:
bugzilla: maintainer-feedback? (dutra)


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Ruslan Makhmatkhanov freebsd_committer freebsd_triage 2025-03-21 08:34:36 UTC
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
Comment 1 commit-hook freebsd_committer freebsd_triage 2025-05-02 17:41:31 UTC
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(-)
Comment 2 Ruslan Makhmatkhanov freebsd_committer freebsd_triage 2025-05-09 20:32:36 UTC
Thank you!