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

Fix zap regression introduced in 6500fa1; ref #21583 #21607

Merged
merged 1 commit into from
Jun 1, 2016
Merged

Fix zap regression introduced in 6500fa1; ref #21583 #21607

merged 1 commit into from
Jun 1, 2016

Conversation

claui
Copy link
Contributor

@claui claui commented Jun 1, 2016

This PR fixes an issue with 6500fa1, in which the (internal) installer API was refactored in preparation for the big change. That refactoring missed one case, causing zap to break; see #21583.

@caskroom/maintainers This is a one-line fix but please have a look nonetheless. Thanks!

Caveats:

  • I did not include tests with this fix. The zap command seems to have test coverage issues. We do have a cli/zap_test case but its main path is commented out. When I uncomment that test, it keeps failing and I can’t figure out why. Shall I open an issue for this on its own?
  • 13966 has exposed a few more (unrelated) issues with uninstall and zap in edge cases when the user has insufficient permissions. This is easily fixable (using methods from 9664b9f); I am preparing a PR right now.

This PR fixes an issue with 6500fa1, in which the (internal) installer API was refactored in preparation for the big change. That refactoring missed one case, causing `zap` to break; see #21583.

There are **no tests** included with this fix due to pre-existing coverage issues. Test will follow in a separate commit.
@jawshooah
Copy link
Contributor

When I uncomment that test, it keeps failing and I can’t figure out why. Shall I open an issue for this on its own?

Please do! Commented-out blocks of code do no one any good; let's figure out what's wrong and fix it before something else breaks.

@adidalal
Copy link
Contributor

adidalal commented Jun 1, 2016

LGTM, don't want zap broken for too long :)

@claui
Copy link
Contributor Author

claui commented Jun 1, 2016

Thanks @jawshooah and @adidalal.
I have opened an investigation PR at #21610. Feel free to help out!

chizmw pushed a commit to chizmw/homebrew-cask that referenced this pull request Jun 15, 2016
…rew#21607)

This PR fixes an issue with 6500fa1, in which the (internal) installer API was refactored in preparation for the big change. That refactoring missed one case, causing `zap` to break; see Homebrew#21583.

There are **no tests** included with this fix due to pre-existing coverage issues. Test will follow in a separate commit.
@Homebrew Homebrew locked and limited conversation to collaborators May 8, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants