Comments (13)
This happened twice in the past week
2.6.0
-> 2.6.1
2.6.1
-> 2.6.2
Both of which we shouldn't be running the uninstall, I agree. But yet it still seemed to trigger. Unless I need to do a complete removal and reinstall to reset something?
from homebrew-cask.
The current caskfile does not do anything when upgrading or uninstalling except remove the .app
file. So you may have an outdated version in your Caskroom
if the upgrade is failing to complete.
There would be more than a handful of apps that provide an "uninstaller" that we don't use because generally speaking, the zap
stanza will suffice.
The logic behind homebrew-cask
suggests that an uninstall will not remove application files, unless you pass zap
.
So we could try to replicate as much logic from the upstream uninstaller as possible to the zap
stanza.
It is currently not possible to run the uninstaller in the zap
stanza, as it will be removed before getting to it (and therefore not exist when zap
is initiated.
When this issue is closed it would be possible - Homebrew/brew#15070
from homebrew-cask.
Is there an ongoing issue with the way brew upgrade
behaves after removing the uninstall script from lulu
?
from homebrew-cask.
@bevanjkay - yeah there is an issue still. It didn't wipe my configuration that I could find, but it tried to run an uninstall which failed on ARM due to "bad CPU type in executable" as the uninstaller is an x86_64 specific binary.
I started some time ago to rewrite the uninstall logic into a _flight
block and see if we could somehow make the normal uninstall a no-op.
So I think there's something here to fix, but part of it is certainly upstream in adding ARM support for the uninstall / upgrade binary.
from homebrew-cask.
@krehel But we aren't running any uninstaller anymore. What you are seeing is a leftover from the previous version of the caskfile.
from homebrew-cask.
Is there an ongoing issue with the way
brew upgrade
behaves after removing the uninstall script fromlulu
?
Since brew upgrade
runs brew uninstall
first, the app is reset, losing previous data and configuration.
The upgrade for cask LuLu as from the maintainer should be as simple as quit the app and replace it.
Even a upgrade stanza from homebrew should be fine, that runs only on brew upgrade
but doesn’t trigger brew uninstall
(but I know this is a problem for all the other casks and all the homebrew logic) something like this:
upgrade script: {
executable: "#{staged_path}/LuLu.app/Contents/MacOS/LuLu",
args: ["-upgrade"],
sudo: true,
}
The problem is that even if LuLu maintainer has added support for other CLI args, the useful script for uninstall is always the same problem if brew upgrade
runs always brew uninstall
first.
uninstall script: {
executable: "#{staged_path}/LuLu.app/Contents/MacOS/LuLu",
args: [“-uninstall"],
sudo: true,
}
from homebrew-cask.
@krehel But we aren't running any uninstaller anymore. What you are seeing is a leftover from the previous version of the caskfile.
That seems weird.
If brew upgrade
runs brew uninstall
first, the LuLu uninstall script is triggered, or not?
from homebrew-cask.
I'd say also there's different issues at play here. Mine is assuredly an upstream issue as the uninstall needs to be compiled for ARM, I'm just thinking of workarounds.
from homebrew-cask.
I'd say also there's different issues at play here. Mine is assuredly an upstream issue as the uninstall needs to be compiled for ARM, I'm just thinking of workarounds.
I don’t know what’s happening to you, I don’t have any issue on uninstalling it via Homebrew on ARM.
from homebrew-cask.
That adds another twist for me at least. I wonder if when trying to debug this uninstall issue sometime ago I accidentally installed the intel version.
Thanks for the data point on that. I'll investigate my own issue.
from homebrew-cask.
@krehel maybe, or double check if you made some change to your local tap and you’re using that for LuLu cask installs and update with HOMEBREW_NO_INSTALL_FROM_API=1
set.
from homebrew-cask.
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs.
from homebrew-cask.
Not happening lately with last updates.
I'll reopen in case something happens again.
from homebrew-cask.
Related Issues (20)
- Cannot install Autodesk Fusion 360 HOT 2
- Superproductivity 8.0.0 changed the release assets HOT 1
- sigmaos cask broken HOT 1
- Error when upgrading / reinstalling quarto: (quarto: key not found: "install-location") HOT 1
- URL schema for deepl download has changed
- Screaming Frog SEO Spider, download redirect to different version HOT 1
- fing-cli: broken cask
- logi-options-plus: uninstall removes user-specific files HOT 6
- Can't start homebrew cask as a service HOT 3
- Cask `latexdraw` needs `xattr` in recipe HOT 1
- Downloads for burp suite & calibre are exceptionally slow
- Nova fails to install (outdated download location)
- Unable to download Racket installer HOT 4
- checksum for cask waterfox (G6.0.9) is wrong HOT 2
- Cask 'google-chrome' does not have a sha256 checksum defined and was not installed. HOT 2
- Error: Operation not permitted @ rb_sysopen Installing Cask ngrok HOT 16
- `microsoft-edge` MacOS Dock Icon Disappears After Each Update HOT 1
- devtunnel SHA not matching HOT 1
- TeXstudio for Apple Silicon has been released. HOT 1
- Package upgraded without a matching checksum when `--require-sha` is set HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from homebrew-cask.