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

Upgrade formulae for Lulu wipes out all its preferences #196202

Closed
4 tasks done
jebediah2 opened this issue Oct 31, 2024 · 2 comments
Closed
4 tasks done

Upgrade formulae for Lulu wipes out all its preferences #196202

jebediah2 opened this issue Oct 31, 2024 · 2 comments
Labels
bug Reproducible Homebrew/homebrew-core bug

Comments

@jebediah2
Copy link

brew gist-logs <formula> link OR brew config AND brew doctor output

Upgrading Lulu performs a full uninstall, which therefore deletes all its preferences (aka 'rules') while these are the whole point of installing it. Lulu's creator objective-see has pointed out that brew's formulae is not created by them, doesn't work, and will not preserve the rules, making it effectively garbage: https://github.com/objective-see/LuLu/issues/590#issuecomment-2016605470

==> Upgrading lulu
==> Downloading https://github.com/objective-see/LuLu/releases/download/v2.9.6/L
==> Downloading from https://objects.githubusercontent.com/github-production-rel
######################################################################### 100.0%
==> Running uninstall script /Applications/LuLu.app/Contents/Resources/LuLu Unin
Password:
LULU: performing full 'uninstall' logic
LULU: waiting for 'kextcache' to complete
LULU: uninstall ok!
...reboot to complete

Verification

  • My brew doctor output says Your system is ready to brew. and am still able to reproduce my issue.
  • I ran brew update and am still able to reproduce my issue.
  • I have resolved all warnings from brew doctor and that did not fix my problem.
  • I searched for recent similar issues at https://github.com/Homebrew/homebrew-core/issues?q=is%3Aissue and found no duplicates.

What were you trying to do (and why)?

brew upgrade lulu

What happened (include all command output)?

It performed a full uninstall of the previous version while upgrading.

==> Upgrading lulu
==> Downloading https://github.com/objective-see/LuLu/releases/download/v2.9.6/L
==> Downloading from https://objects.githubusercontent.com/github-production-rel
######################################################################### 100.0%
==> Running uninstall script /Applications/LuLu.app/Contents/Resources/LuLu Unin
Password:
LULU: performing full 'uninstall' logic
LULU: waiting for 'kextcache' to complete
LULU: uninstall ok!
...reboot to complete

What did you expect to happen?

That lulu would be updated while preserving its preferences.
Lulu's creator objective-see has pointed out that brew's formulae is not created by them, doesn't work, and will not preserve the rules, making it effectively garbage: objective-see/LuLu#590 (comment)

Step-by-step reproduction instructions (by running brew commands)

brew upgrade lulu
@jebediah2 jebediah2 added the bug Reproducible Homebrew/homebrew-core bug label Oct 31, 2024
@daeho-ro
Copy link
Member

It should be homebrew cask and it was discussed long ago,

and indeed, uninstall of lulu for recent version will not trigger uninstaller. Before upgrade, what version did you use?

@jebediah2
Copy link
Author

jebediah2 commented Oct 31, 2024

My bad, I had looked into all other repos and left cask out.

I was doing lulu 2.3.1 -> 2.9.6

I don't know enough about homebrew to suggest how to prevent this from happening to other people. I was unable to find anything at all online and in the homebrew repos, so I thought I should mention it here, but since it's right there is the cask repo, there is no need. I'll close this and let the discussion continue in cask, although the particular (closed) issue you pointed to unfortunately doesn't resolve the problem for whoever is upgrading from older versions.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Reproducible Homebrew/homebrew-core bug
Projects
None yet
Development

No branches or pull requests

2 participants