Skip to content
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

refactor: First step on abort function deprication #3748

Closed
wants to merge 4 commits into from

Conversation

Ash258
Copy link
Contributor

@Ash258 Ash258 commented Nov 15, 2019

Implemented in Shovel. Meta issues: Ash258#46, Ash258#21

Relates to #3936 and #4135.

abort function is causing lots of troubles for user and is used across whole codebase.

Main problem is update/installation of multiple applications. scoop install man1 man2. Currently if installtion of man1 fail, then man2 is not installed and you need to install it manually. But without abort, and proper try/catching, throwing it is easy to recover from failed installation and continue with man2 installation

This PR is first step of whole process of removing/limiting usage of it.

I added new function, which has same behaviour, but it support pipeline and is verb-noun, because sometimes you can simply exit whole execution.

I will deprecate other usage of abort in other PRs (except decompress; I will leave it to @niheaven since he wrote almost all of it) Additional removal of other abort references will be harder as there is need to reimplement all functions to throw exception instead of aborting and then try catching.

This is just fast patch of few simple abort usage, which could be fixed easily.

@Ash258 Ash258 changed the title feat: First step on abort function deprication refactor: First step on abort function deprication Nov 15, 2019
@Ash258 Ash258 closed this Jul 9, 2020
@Ash258 Ash258 deleted the abortKO branch August 1, 2020 22:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant