Skip to content

Linux build fails due to missing CSQLite module #1090

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
fwcd opened this issue Oct 15, 2021 · 3 comments
Closed

Linux build fails due to missing CSQLite module #1090

fwcd opened this issue Oct 15, 2021 · 3 comments

Comments

@fwcd
Copy link
Contributor

fwcd commented Oct 15, 2021

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
Copy link
Contributor Author

fwcd commented Oct 15, 2021

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
Copy link
Collaborator

jberkel commented Oct 18, 2021

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

@fwcd
Copy link
Contributor Author

fwcd commented Oct 18, 2021

Ah okay, thanks! 👍

@fwcd fwcd closed this as completed Oct 18, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants