Skip to content

Building Gitea will build go-sqlite3 with or without the sqlite build tag  #2172

Closed
@dubeg

Description

@dubeg
  • Gitea version (or commit ref): master
  • Git version: 2.8.1
  • Operating system: Windows 10
  • Database:
    • PostgreSQL
    • MySQL
    • MSSQL
    • SQLite
    • Not relevant
  • Can you reproduce the bug at https://try.gitea.io:
    • Yes (provide example URL)
    • No
    • Not relevant
  • Log gist:
    • Not relevant

Description

Even without specifying "sqlite" as a build tag, the command go build main.go will also build the vendor go-sqlite3, which requires gcc.

Screenshots

sqlitebuild

Note

Currently, two of Gitea's files import this vendor: models/models_sqlite.go and models/unit_tests.go. The former has the sqlite build constraint, while the latter does not. This is probably the root of this issue.

Metadata

Metadata

Assignees

No one assigned

    Labels

    topic/buildPR changes how Gitea is built, i.e. regarding Docker or the Makefiletype/bug

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions