shibapm / Komondor

Git Hooks for Swift projects 🐩
MIT License
552 stars 32 forks source link

Error: no such module 'PackageDescription' #53

Open f0rr0 opened 2 years ago

f0rr0 commented 2 years ago

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 commented 2 years ago

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