Skip to content

Not working with Kitura - {lib}Venice dependency issue #22

@JoeFerrucci

Description

@JoeFerrucci

I got Kitura to build successfully with just the Kitura and HeliumLogger packages, but, when I try to add another package, the PostgreSQL-Swift package, https://github.com/stepanhruda/PostgreSQL-Swift.git, I get a build error citing that Packages/CLibvenice already exists and is not empty. The output is below. It looks as if the connection-pooling branch depends on {lib}venice and that branch is tagged 0.0.7. What can I do to get this working with Kitura? Below my output, I will post the contents of my Package.swift file.

 → [kituraFirstProject]  swift build
Cloning https://github.com/IBM-Swift/Kitura.git
Resolved version: 0.17.8
Cloning https://github.com/IBM-Swift/Kitura-net.git
Resolved version: 0.17.6
Cloning https://github.com/IBM-Swift/Kitura-sys.git
Resolved version: 0.17.1
Cloning https://github.com/IBM-Swift/LoggerAPI.git
Resolved version: 0.8.0
Cloning https://github.com/IBM-Swift/BlueSocket.git
Resolved version: 0.5.20
Cloning https://github.com/IBM-Swift/CCurl.git
Resolved version: 0.2.1
Cloning https://github.com/IBM-Swift/CHTTPParser.git
Resolved version: 0.1.1
Cloning https://github.com/IBM-Swift/SwiftyJSON.git
Resolved version: 8.1.1
Cloning https://github.com/IBM-Swift/Kitura-TemplateEngine.git
Resolved version: 0.16.0
Cloning https://github.com/IBM-Swift/HeliumLogger.git
Resolved version: 0.9.2
Cloning https://github.com/stepanhruda/PostgreSQL-Swift.git
Resolved version: 0.0.7
Cloning https://github.com/stepanhruda/libpq-darwin.git
Resolved version: 9.0.1
Cloning https://github.com/Zewo/CLibvenice.git
Resolved version: 0.5.1
Cloning https://github.com/Zewo/Venice.git
Resolved version: 0.8.0
Cloning https://github.com/VeniceX/CLibvenice.git
/usr/bin/git clone --recursive --depth 10 https://github.com/VeniceX/CLibvenice.git /Users/joe/Developer/kituraFirstProject/Packages/CLibvenice
fatal: destination path '/Users/joe/Developer/kituraFirstProject/Packages/CLibvenice' already exists and is not an empty directory.

error: Failed to clone https://github.com/VeniceX/CLibvenice.git to /Users/joe/Developer/kituraFirstProject/Packages/CLibvenice
 → [kituraFirstProject]

This is the contents of my Package.swift:

import PackageDescription

let package = Package(
    name: "kituraFirstProject",
    dependencies: [
        .Package(url: "https://github.com/IBM-Swift/Kitura.git", majorVersion: 0, minor: 17),
        .Package(url: "https://github.com/IBM-Swift/HeliumLogger.git", majorVersion: 0, minor: 9),
        .Package(url: "https://github.com/stepanhruda/PostgreSQL-Swift.git", majorVersion: 0)
    ]
)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions