Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
* initial attempt at adding async/await to `Process` * ParsableCommand -> AsyncParsableCommand * oops, wasn't calling async main * remove all waitUntilExit() remnants * change static let gitURL to gregcotten/swift-bundler for testing * more async/await * don't use DispatchSemaphore which can deadlock no clue if this works or fixes anything * simplify getOutputData * bring back fileHandleForReading.readToEnd() * move fileHandleForReading.readToEnd to the data consuming Task * add more getOutputData debugging * more debug logging * close inputPipe fileHandleForWriting after writing context? * signal debug log * readLine using async iterator if possible * I guess only Darwin has AsyncBytes... * readLineAsync always * have readLineAsync respect `strippingNewline` * builder subprocess input pipe should not be the parent's (?) * flailing * better builder debugging * try using SwiftCommand in BuilderContextImpl * shim in SwiftCommand in some flailing attempt to fix deadlock * Update Package.swift * Update ProjectBuilder.swift * hardcode builder context as test * try using Shwift in Builder * Revert "try using Shwift in Builder" This reverts commit a945c78. * Revert "hardcode builder context as test" This reverts commit b3ea18c. * try calling "swift run Builder" instead of running exe directly? * hardcoded context once again * use AsyncProcess * oops * Update Package.resolved * Update Package.resolved * Update Package.resolved * use tagged `AsyncProcess` * remove extraneous logging * Squashed commit of the following: commit ea59e6e Merge: 4cfdd0e 5bd25e0 Author: Greg Cotten <[email protected]> Date: Wed Mar 5 11:48:59 2025 -0800 Merge branch 'main' into async-process commit 4cfdd0e Author: Greg Cotten <[email protected]> Date: Wed Mar 5 11:46:58 2025 -0800 remove extraneous logging commit b1f4f39 Author: Greg Cotten <[email protected]> Date: Wed Mar 5 11:15:36 2025 -0800 use tagged `AsyncProcess` commit 80c4429 Author: Greg Cotten <[email protected]> Date: Wed Mar 5 10:38:54 2025 -0800 Update Package.resolved commit 1243bed Author: Greg Cotten <[email protected]> Date: Wed Mar 5 10:26:24 2025 -0800 Update Package.resolved commit cbcbe46 Author: Greg Cotten <[email protected]> Date: Wed Mar 5 09:52:30 2025 -0800 Update Package.resolved commit e68cd8d Author: Greg Cotten <[email protected]> Date: Wed Mar 5 09:42:04 2025 -0800 oops commit c1066c1 Author: Greg Cotten <[email protected]> Date: Wed Mar 5 09:41:34 2025 -0800 use AsyncProcess commit 2c171f7 Author: Greg Cotten <[email protected]> Date: Tue Mar 4 09:03:17 2025 -0800 hardcoded context once again commit ba4190c Author: Greg Cotten <[email protected]> Date: Mon Mar 3 17:05:07 2025 -0800 try calling "swift run Builder" instead of running exe directly? commit 7b6d3e3 Author: Greg Cotten <[email protected]> Date: Mon Mar 3 14:58:08 2025 -0800 Revert "hardcode builder context as test" This reverts commit b3ea18c. commit 1062101 Author: Greg Cotten <[email protected]> Date: Mon Mar 3 14:58:00 2025 -0800 Revert "try using Shwift in Builder" This reverts commit a945c78. commit a945c78 Author: Greg Cotten <[email protected]> Date: Sun Mar 2 07:15:53 2025 -0800 try using Shwift in Builder commit b3ea18c Author: Greg Cotten <[email protected]> Date: Sat Mar 1 07:09:46 2025 -0800 hardcode builder context as test commit 959f678 Author: Greg Cotten <[email protected]> Date: Fri Feb 28 13:23:17 2025 -0800 Update ProjectBuilder.swift commit 086f9f8 Author: Greg Cotten <[email protected]> Date: Fri Feb 28 13:22:23 2025 -0800 Update Package.swift commit d46600f Author: Greg Cotten <[email protected]> Date: Fri Feb 28 13:21:12 2025 -0800 shim in SwiftCommand in some flailing attempt to fix deadlock commit f699a44 Author: Greg Cotten <[email protected]> Date: Thu Feb 27 21:03:10 2025 -0800 try using SwiftCommand in BuilderContextImpl commit 065e3c0 Author: Greg Cotten <[email protected]> Date: Thu Feb 27 19:55:42 2025 -0800 better builder debugging commit b6202f5 Author: Greg Cotten <[email protected]> Date: Thu Feb 27 15:00:59 2025 -0800 flailing commit 65a0c7a Author: Greg Cotten <[email protected]> Date: Thu Feb 27 14:31:08 2025 -0800 builder subprocess input pipe should not be the parent's (?) commit 295bee1 Author: Greg Cotten <[email protected]> Date: Thu Feb 27 14:16:28 2025 -0800 have readLineAsync respect `strippingNewline` commit 1bb3c00 Author: Greg Cotten <[email protected]> Date: Thu Feb 27 14:06:19 2025 -0800 readLineAsync always commit 3360f60 Author: Greg Cotten <[email protected]> Date: Thu Feb 27 14:03:41 2025 -0800 I guess only Darwin has AsyncBytes... commit 16fa1cb Author: Greg Cotten <[email protected]> Date: Thu Feb 27 13:52:35 2025 -0800 readLine using async iterator if possible commit 533fb18 Author: Greg Cotten <[email protected]> Date: Thu Feb 27 12:53:26 2025 -0800 signal debug log commit 8b5f0fd Author: Greg Cotten <[email protected]> Date: Thu Feb 27 12:52:23 2025 -0800 close inputPipe fileHandleForWriting after writing context? commit cf242e7 Author: Greg Cotten <[email protected]> Date: Thu Feb 27 12:36:30 2025 -0800 more debug logging commit 6e0b8fd Author: Greg Cotten <[email protected]> Date: Thu Feb 27 12:05:55 2025 -0800 add more getOutputData debugging commit 8957ddc Author: Greg Cotten <[email protected]> Date: Thu Feb 27 11:59:11 2025 -0800 move fileHandleForReading.readToEnd to the data consuming Task commit 0f2e019 Author: Greg Cotten <[email protected]> Date: Thu Feb 27 11:50:33 2025 -0800 bring back fileHandleForReading.readToEnd() commit f6e8f81 Author: Greg Cotten <[email protected]> Date: Thu Feb 27 11:45:21 2025 -0800 simplify getOutputData commit 14775ee Author: Greg Cotten <[email protected]> Date: Thu Feb 27 10:01:51 2025 -0800 don't use DispatchSemaphore which can deadlock no clue if this works or fixes anything commit e9d9225 Author: Greg Cotten <[email protected]> Date: Wed Feb 26 22:29:49 2025 -0800 more async/await commit 4a0a3a5 Author: Greg Cotten <[email protected]> Date: Wed Feb 26 22:15:34 2025 -0800 change static let gitURL to gregcotten/swift-bundler for testing commit 25f773e Author: Greg Cotten <[email protected]> Date: Wed Feb 26 21:50:33 2025 -0800 remove all waitUntilExit() remnants commit d5169d8 Author: Greg Cotten <[email protected]> Date: Wed Feb 26 20:38:10 2025 -0800 oops, wasn't calling async main commit 52a5bd2 Author: Greg Cotten <[email protected]> Date: Wed Feb 26 20:30:49 2025 -0800 ParsableCommand -> AsyncParsableCommand commit ecb5d62 Author: Greg Cotten <[email protected]> Date: Wed Feb 26 20:04:40 2025 -0800 initial attempt at adding async/await to `Process` * back to stackotter swift-bundler * swift-format -> swift format * oneshot swift format * no need for swift-system import remnant * get rid of swift 6 Result extension stuff * format * log `Process.run` everywhere possible * address concerns * formatting * update AsyncProcess to 0.0.4 * AsyncProcess 0.0.5
- Loading branch information