diff --git a/CHANGELOG.md b/CHANGELOG.md index f4c5a51d..14326fdc 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -13,6 +13,10 @@ ## Master +## 3.21.2 + +- Fix Runner's path resolution to enable `--cwd` with relative paths [@Fab1n](https://github.com/Fab1n) - [#650](https://github.com/danger/swift/pull/650) + ## 3.21.1 - Fix current directory url creation [@f-meloni][] - [#640](https://github.com/danger/swift/pull/640) diff --git a/Sources/Runner/Commands/Runner.swift b/Sources/Runner/Commands/Runner.swift index ae7ec5ee..9a5402de 100644 --- a/Sources/Runner/Commands/Runner.swift +++ b/Sources/Runner/Commands/Runner.swift @@ -162,7 +162,7 @@ func runDanger(version dangerSwiftVersion: String, logger: Logger) throws { (cwdOptionIndex + 1) < CommandLine.arguments.count { let directoryURL = URL(fileURLWithPath: CommandLine.arguments[cwdOptionIndex + 1]) - proc.currentDirectoryURL = directoryURL + proc.currentDirectoryURL = directoryURL.absoluteURL } proc.standardOutput = standardOutput proc.standardError = standardOutput