vapor-community / mysql-provider

MySQL provider for the Vapor web framework.
MIT License
30 stars 12 forks source link

Vapor build failed #37

Open blabz-rahulmandalkar opened 6 years ago

blabz-rahulmandalkar commented 6 years ago

When i tried to update/build vapor project.It is not generating it. I have added in Package.swift file ` import PackageDescription let package = Package( name: "FundooNotes", products: [ .library(name: "App", targets: ["App"]), .executable(name: "Run", targets: ["Run"]) ], dependencies: [ .package(url: "https://github.com/vapor/vapor.git", .upToNextMajor(from: "2.1.0")) , .package(url: "https://github.com/vapor/leaf-provider.git", .upToNextMajor(from: "1.1.0")), // added .package(url: "https://github.com/vapor/fluent-provider.git", .upToNextMajor(from: "1.3.0")), // added .package(url: "https://github.com/vapor/mysql-provider", .upToNextMajor(from: "2.0.0")) // added

],
targets: [
    .target(name: "App", dependencies: ["Vapor","LeafProvider","FluentProvider","MySQLProvider"],
            exclude: [
                "Config",
                "Public",
                "Resources",
            ]),
    .target(name: "Run", dependencies: ["App"]),
    .testTarget(name: "AppTests", dependencies: ["App", "Testing"])
]

)` But it showing error like below,

Rahul:FundooNote bridgelabz$ vapor xcode Generating Xcode Project [Failed] error: terminated(128): git -C '/Users/bridgelabz/Documents/iOS Tutorial/Vapor2/FundooNote/.build/repositories/mysql-driver.git--8170272045732294678' remote update -p error: product dependency 'MySQLProvider' not found

Error: Could not generate Xcode project: error: terminated(128): git -C '/Users/bridgelabz/Documents/iOS Tutorial/Vapor2/FundooNote/.build/repositories/mysql-driver.git--8170272045732294678' remote update -p error: product dependency 'MySQLProvider' not found

vzsg commented 6 years ago

If you edit dependencies, you must run vapor update, instead of just regenerating the Xcode project.