File tree Expand file tree Collapse file tree 2 files changed +6
-2
lines changed
Sources/BinaryDependencyManager Expand file tree Collapse file tree 2 files changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -62,11 +62,11 @@ struct DependenciesResolverRunner {
6262
6363 private func resolveGithibCLIPath( ) throws -> String {
6464 let process = Process ( )
65- process. launchPath = " /usr/bin/which "
65+ process. executableURL = URL ( fileURLWithPath : " /usr/bin/which " )
6666 process. arguments = [ " gh " ]
6767 let pipe = Pipe ( )
6868 process. standardOutput = pipe
69- process. launch ( )
69+ try process. run ( )
7070 process. waitUntilExit ( )
7171 let data = pipe. fileHandleForReading. readDataToEndOfFile ( )
7272 guard let githubCommandLineToolPath = String ( data: data, encoding: . utf8) ? . trimmingCharacters ( in: . whitespacesAndNewlines) else {
Original file line number Diff line number Diff line change @@ -2,7 +2,11 @@ import ArgumentParser
22import Foundation
33
44// Making sure that output will be shown immediately, as it comes in the script
5+ #if os(macOS)
56setbuf ( __stdoutp, nil )
7+ #elseif os(Linux)
8+ setbuf ( stdout, nil )
9+ #endif
610
711struct BinaryDependenciesManager : ParsableCommand {
812
You can’t perform that action at this time.
0 commit comments