#[SOLVED] Errors when deploying swift function with multiple dependencies

21 messages · Page 1 of 1 (latest)

molten timber
#

I am working on a function in swift that previously only had one dependency and it worked fine. Since adding a second dependency the deployment fails instantly. Changing Package.swift to have only one of either dependency works fine but I can't add both without getting the attached error. Here is my Package.swift

// swift-tools-version:5.5
// The swift-tools-version declares the minimum version of Swift required to build this package.

import PackageDescription

let package = Package(
    name: "send-message",
    dependencies: [
        .package(url: "https://github.com/apple/swift-crypto.git", from: "2.0.3"),
        .package(url: "https://github.com/swift-server/async-http-client.git", from: "1.9.0"),
    ],
    targets: [
        .target(
            name: "send-message",
            dependencies: [
                .product(name: "Crypto", package: "swift-crypto"),
                .product(name: "AsyncHTTPClient", package: "async-http-client"),
            ]
        )
    ]
)
junior geyser
junior geyser
molten timber
molten timber
junior geyser
sudden marlin
molten timber
#

Thank you for creating a fix so fast. How can I update my swift runtime with the changes?

junior geyser
molten timber
#

Sounds good!

junior geyser
molten timber
#

self hosting

junior geyser
#

wait...

#

what's docker images output?

#

i think it's actually:

docker pull openruntimes/swift:v2-5.5
molten timber
#

Im away from my computer rn, ill let you know in ~30 minutes

junior geyser
molten timber