如何决定在下面的代码中majorVersion
放置什么。minor
我试图将 sqlite3 与蒸汽一起使用并被困在这里。
import PackageDescription
let package = Package(
name: "Hello",
dependencies: [
.Package(url: "https://github.com/vapor/vapor.git", majorVersion: 1, minor: 1)
,.Package(url: "https://github.com/vapor/sqlite-driver.git", majorVersion: 1, minor: 0)
,.Package(url: "https://github.com/vapor/sqlite-provider.git", majorVersion: 1, minor: 1)
],
exclude: [
"Config",
"Database",
"Localization",
"Public",
"Resources",
"Tests",
]
)
当我这样做时,我收到如下错误vapor build
-
获取依赖项 [失败] 检查依赖项的 Package.swift 文件以查看冲突所在。错误:swift-package:错误:无法满足依赖关系图。未找到版本标记在 (1.1.0..<1.1.9223372036854775807) 范围内的包 ( https://github.com/vapor/sqlite-driver.git )。找到标签 ([0.0.0, 0.1.0, 0.1.1, 0.2.0, 0.3.0, 0.3.1, 0.3.2, 0.4.0, 0.4.1, 0.5.0, 0.6.0, 0.7. 0, 1.0.0, 1.0.1])