danger / swift

⚠️ Stop saying "you forgot to …" in code review
https://danger.systems/swift/
MIT License
1.04k stars 135 forks source link

error: 'native-ios-app': invalid custom path 'Artsy' for target 'eigen' #600

Open icarusdust opened 7 months ago

icarusdust commented 7 months ago

Hi,

Steps to reproduce:

  1. Installing Danger through homebrew: brew install danger/tap/danger-swift
  2. It creates Dangerfile.swift with the following content:
// swift-tools-version:4.2
import PackageDescription

let package = Package(
    name: "Eigen",
    dependencies: [
      .package(url: "https://github.com/danger/swift.git", from: "1.0.0")
    ],
    targets: [
        // This is just an arbitrary Swift file in our app, that has
        // no dependencies outside of Foundation, the dependencies section
        // ensures that the library for Danger gets build also.
        .target(name: "eigen", dependencies: ["Danger"], path: "Artsy", sources: ["Stringify.swift"]),
    ]
)
  1. Running swift build swift run danger-swift pr [url_of_pr], and getting the following error: error: 'native-ios-app': invalid custom path 'Artsy' for target 'eigen'

Tried to install Eigen globally, but it does not help get rid of this error.

skydivedan commented 5 months ago

Does your local project have a path named Artsy? The path, and it's sources needs to be changed to fit your project.