-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
decompress.ps1: Refactored (w/ install.ps1, core.ps1) (edited) #3169
Conversation
I would rather see 3 PRs for each list item (instead of 1 huge) in small iteration windows. This increase error domain and could be hard to debug. So:
|
c86ed93
to
b421879
Compare
b421879
to
b98d8ac
Compare
Working and ready for merge? Can't test right now. |
I am not sure if this change do not break installation of new scoop. Since only core is downloaded and extract_zip is called (https://github.com/lukesampson/scoop/blob/master/bin/install.ps1#L49) @niheaven Have you tested installation? |
These "hacks" and continuality thinking about not breaking installation will not be needed when bucket extraction and standalone installer (https://github.com/scoopinstaller/install) is done and is not dependent on scoop's core implementation. |
@Ash258 @r15ch13 Fully tested with last commit. Replace This PR can be tested by the following code:
test-scoop/bin/install.ps1 is a modified install script that redirect to PR's branch, and I've test above code with Unicode path ( Please remember to restore scoop config and env values after test. |
LGTM. By static code review. Will fully test it in few minutes, after i arrive home. |
The new scoop installer uses the same method that I used here, and Expand-Archive for PS 5+, too. |
@Ash258 Does the test be passed? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Tested basic scoop installation, manifest installation / updating. |
EDITED: Split PR, PART I
decompress.ps1
)extract_zip
andunzip_old
fromcore.ps1
unpack_inno
,extract_msi
,lessmsi_config
andextract_lessmsi
frominstall.ps1
unzip_old
test fromScoop-Core.Tests.ps1
toScoop-Decompress.Tests.ps1
Thanks for @Ash258 #3149, this could be part of it.