Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error: no such module 'PackageDescription' #53

Open
f0rr0 opened this issue Feb 26, 2022 · 1 comment
Open

Error: no such module 'PackageDescription' #53

f0rr0 opened this issue Feb 26, 2022 · 1 comment

Comments

@f0rr0
Copy link

f0rr0 commented Feb 26, 2022

Swift Version 5.5.2
Komondor Version 1.1.3
Xcode Version 13.2

// swift-tools-version:5.5
import PackageDescription

let package = Package(
    name: "kult",
    products: [
        .executable(name: "app", targets: ["app-cli"]),
    ],
    dependencies: [
        .package(url: "https://github.com/shibapm/Komondor.git", from: "1.1.3"),
        .package(url: "https://github.com/kylef/Commander", from: "0.9.1"),
        .package(url: "https://github.com/kareman/SwiftShell", from: "5.1.0"),
    ],
    targets: [
        .target(name: "app-cli", dependencies: ["Commander", "SwiftShell"], path: "cli"),
    ]
)

#if canImport(PackageConfig)
import PackageConfig

let config = PackageConfiguration([
    "komondor": [
        "pre-commit": [
            "./scripts/format.sh",
        ],
    ],
]).write()
#endif
@orta
Copy link
Member

orta commented Mar 3, 2022

Pretty sure you're missing this: https://github.com/shibapm/Komondor/blob/master/Package.swift#L12

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants