-
-
Notifications
You must be signed in to change notification settings - Fork 135
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
Edit Dangerfile as a Swift Package on danger-swift edit
instead of xcodeproj
#566
Conversation
@@ -163,7 +163,7 @@ public final class Script { | |||
do { | |||
let path = editingPath() | |||
|
|||
try ShellExecutor().spawn("open \"\(path)\"", arguments: []) | |||
try ShellExecutor().spawn("xed \"\(path)\"", arguments: []) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
10b1fa3
to
d57b402
Compare
|
||
try createConfig(atPath: configPath, libPath: absoluteLibPath, libsImport: libsImport) | ||
|
||
try script.setupForEdit(importedFiles: importedFiles, configPath: configPath) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No flags can be set on Package.swift, and needs Danger
package as a default dependency instead.
https://github.com/danger/swift/pull/566/files?w=1#diff-b040c9d7cf1d8a4d0275190fb078df8712464dcb18a89b281f9a93145610068dR16
This may resolves #464 only on danger-swift edit
.
1bd020e
to
22e3f8e
Compare
22e3f8e
to
ef700fa
Compare
ef700fa
to
7e02b15
Compare
danger-swift edit
instead of xcodeproj
danger-swift edit
instead of xcodeproj
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I gave it a quick look and looks great!
I will give it a more focused look and merge it!
Thank you for this amazing PR :)
|
||
extension InlineDependenciesFinder.InlineDependency { | ||
static var dangerSwift: Self { | ||
.init(url: URL(string: "https://github.com/danger/swift.git")!, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This seems to be depending on the latest version, which might differ from your current version, and that might lead to mistakes, am I missing something?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Indeed.
There is a DangerVersion
constant in main.swift, and I will try if I can inject it.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
How about something like this?
22b5b6b...706164c
c68e9ee
to
706164c
Compare
NOTE: I tried to bump SwiftLint to resolved version, error occured on resolving dependencies.
|
@f-meloni @orta |
ebedf08
to
a5c195b
Compare
a5c195b
to
9972ca1
Compare
Resolves: #563