yonaskolb / Mint

A package manager that installs and runs executable Swift packages
MIT License
2.25k stars 121 forks source link

Executable product not found #229

Closed mickeyl closed 2 years ago

mickeyl commented 2 years ago

Which logic is mint applying to find the executable? I've been trying to mint install Automotive-Swift/ELMpersonator, but keep getting:

 🌱  Executable product not found in ELMpersonator 0.5.2

The relevant part of the Package.swift looks like that:

.executableTarget(
            name: "ELMpersonator",
            dependencies: [
                .product(name: "ECUmulation", package: "ECUmulator"),
                .product(name: "ECUmulation-Specs", package: "ECUmulator"),
                .product(name: "ArgumentParser", package: "swift-argument-parser"),
                "Swift-CAN",
                .product(name: "Swift-SocketCAN", package: "Swift-SocketCAN", condition: .when(platforms: [.linux])),
                .product(name: "Swift-TouCAN", package: "Swift-TouCAN", condition: .when(platforms: [.macOS])),
                "Swift-UDS",
                "LineNoise",
                .product(name: "SocketSwift", package: "Socket.swift"),
                "Rainbow"
            ]
        ),

Am I missing anything?

mickeyl commented 2 years ago

Ok, apparently an executable target is not an executable product. Sorry for the noise.