Closed sphericalwave closed 4 years ago
Adding Imperial to the Package.swift is producing and error. The format of the Package.swift has changed.
error: unknown package 'imperial' in dependencies of target 'App'
// swift-tools-version:5.2 import PackageDescription let package = Package( name: "PainFreeJits", platforms: [ .macOS(.v10_15), ], products: [ .executable(name: "Run", targets: ["Run"]), .library(name: "App", targets: ["App"]), ], dependencies: [ // 💧 A server-side Swift web framework. .package(url: "https://github.com/vapor/vapor.git", from: "4.3.0"), .package(url: "https://github.com/vapor/leaf.git", from: "4.0.0-rc"), .package(url: "https://github.com/vapor/fluent.git", from: "4.0.0-rc.1"), .package(url: "https://github.com/vapor/fluent-sqlite-driver.git", from: "4.0.0-rc.1"), .package(url: "https://github.com/vapor-community/Imperial.git", from: "0.7.1"), ], targets: [ .target(name: "App", dependencies: [ .product(name: "Leaf", package: "leaf"), .product(name: "Fluent", package: "fluent"), .product(name: "FluentSQLiteDriver", package: "fluent-sqlite-driver"), .product(name: "Vapor", package: "vapor"), .product(name: "Imperial", package: "imperial"), ]), .target(name: "Run", dependencies: [ .target(name: "App"), ]), .testTarget(name: "AppTests", dependencies: [ .target(name: "App"), .product(name: "XCTVapor", package: "vapor"), ]) ] )
I'm trying to setup OAuth for Aweber a email autoresponder system.
Looks like Imperials package name is capitalized vs lowercased use .product(name: "Imperial", package: "Imperial")
.product(name: "Imperial", package: "Imperial")
Adding Imperial to the Package.swift is producing and error. The format of the Package.swift has changed.
error: unknown package 'imperial' in dependencies of target 'App'