danger / swift

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

`danger-swift edit` fails when using `--dangerfile` option #564

Closed 417-72KI closed 1 year ago

417-72KI commented 1 year ago

Simple danger-swift edit will succeed even if Dangerfile.swift has // fileImport: ~. However, running on Xcode makes the working directory not to be the container of the Dangerfile.swift. Though it can be resolved with --dangerfile option, it fails when the Dangerfile has // fileImport: ~.

$ danger-swift edit --dangerfile /path/to/danger/swift/Dangerfile.swift
ERROR: Error Domain=NSCocoaErrorDomain Code=260 "The file “ChangelogCheck.swift” couldn’t be opened because there is no such file." UserInfo={NSFilePath=DangerfileExtensions/ChangelogCheck.swift, NSUnderlyingError=0x7fcdb080a2f0 {Error Domain=NSPOSIXErrorDomain Code=2 "No such file or directory"}}

I'm trying to resolve #563 and debugging on Xcode as above, this issue makes me a little inconvenience.

image