Repository navigation
Make the setup safer when a swap, install or repair fails - #56
Merged
Merged
Conversation
…failure if it started empty
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Six setup fixes, one per commit.
Swap::rollbackdeleted the previous program files even when some of them couldn't go back. It now keeps that folder when anything failed and says where it is: in the error when the swap itself fails, and as a note when the config step fails after the swap.winget list. The terminal tools and FFmpeg are looked up on the PATH first;winget listonly runs when they aren't there.win::runread stdout and stderr withjoin(), which waited forever when a child process kept the pipes open. The readers now send their output through a channel, andrunwaits at most 3 s for each once the process has exited.New strings are in
installer/ui/i18n.jsin English and Portuguese.fsops::is now part of the setup-tests filter.Tested with
cargo test -p iiw-setup-coreon Linux, and on a Windows 10 VM with the Windows test binary (fsops:: ops:: win:: release::, 25 passed) and the built setup: