stephencelis / SQLite.swift

A type-safe, Swift-language layer over SQLite3.
MIT License
9.57k stars 1.55k forks source link

Linux build fails due to missing CSQLite module #1090

Closed fwcd closed 2 years ago

fwcd commented 2 years ago

The Linux build currently fails with various errors of the form

.../SQLite.swift/Sources/SQLite/Core/Connection.swift:32:8: error: no such module 'CSQLite'
import CSQLite

Perhaps a GitHub Actions CI pipeline could be added to avoid regressing on such things?

fwcd commented 2 years ago

Hm, it seems as if pinning the dependency version of SQLite.swift in the package manifest is an issue. Declaring

.package(url: "https://github.com/stephencelis/SQLite.swift", .branch("master"))

correctly yields

.
└── SQLite.swift<https://github.com/stephencelis/SQLite.swift@unspecified>
    └── CSQLite<https://github.com/stephencelis/CSQLite.git@0.0.3>

whereas declaring

.package(url: "https://github.com/stephencelis/SQLite.swift", from: "0.13.0")

yields a dependency tree without CSQLite

.
└── SQLite.swift<https://github.com/stephencelis/SQLite.swift@0.13.0>

Perhaps this is a bug in the Swift Package Manager? (I am running Swift 5.4.2 on Linux)

jberkel commented 2 years ago

this is a bug with the released version, and was fixed in #1077

fwcd commented 2 years ago

Ah okay, thanks! 👍