Skip to content

fix(scoop-uninstall): run pre_uninstall before testing running processes#4962

Merged
chawyehsu merged 5 commits intoScoopInstaller:developfrom
beer-psi:prerm_before_running_tests
Jun 3, 2022
Merged

fix(scoop-uninstall): run pre_uninstall before testing running processes#4962
chawyehsu merged 5 commits intoScoopInstaller:developfrom
beer-psi:prerm_before_running_tests

Conversation

@beer-psi
Copy link
Copy Markdown
Contributor

@beer-psi beer-psi commented Jun 2, 2022

Description

Execute the pre_uninstall hook before other uninstallation preparation work, namely test_running_process

Motivation and Context

Closes #4961

Motivations

  • pre_uninstall script should handle teardown work such as stopping services, so that the uninstallation process isn't blocked by running processes.
  • Matches symmetry with post_uninstall, which is run at the very end of the uninstallation process.

How Has This Been Tested?

Checklist:

  • I have read the Contributing Guide.
  • I have ensured that I am targeting the develop branch.
  • I have updated the documentation accordingly.
  • I have updated the tests accordingly.
  • I have added an entry in the CHANGELOG.

@beer-psi
Copy link
Copy Markdown
Contributor Author

beer-psi commented Jun 2, 2022

One question: Is a CHANGELOG.md entry required, considering pre_ and post_uninstall hooks haven't been officially released?

@niheaven
Copy link
Copy Markdown
Member

niheaven commented Jun 2, 2022

Add (#4962)[https://github.com/ScoopInstaller/Scoop/issues/4962] after the original PR number, see other multi–PRs CHANGELOG entries.

@beer-psi
Copy link
Copy Markdown
Contributor Author

beer-psi commented Jun 2, 2022

Alright, I've done that

Comment thread libexec/scoop-uninstall.ps1
Comment thread CHANGELOG.md Outdated
beer-psi and others added 2 commits June 3, 2022 05:52
Co-authored-by: Hsiao-nan Cheung <niheaven@gmail.com>
@beer-psi beer-psi requested a review from chawyehsu June 2, 2022 23:11
@chawyehsu chawyehsu merged commit 78c1bc4 into ScoopInstaller:develop Jun 3, 2022
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.

3 participants