Skip to content

Using SQLite database with docker image fails #255

@salvisane

Description

@salvisane

Using SQLite database with the docker image fails because of disabled cgo on image build.

2025/05/16 06:29:53 using SQLite database

2025/05/16 06:29:53 /home/runner/work/developers-italia-api/developers-italia-api/internal/database/database.go:26
[error] failed to initialize database, got error Binary was compiled with 'CGO_ENABLED=0', go-sqlite3 requires cgo to work. This is a stub
panic: can't open database: Binary was compiled with 'CGO_ENABLED=0', go-sqlite3 requires cgo to work. This is a stub

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions