microsoft / scalar

Scalar: A set of tools and extensions for Git to allow very large monorepos to run on Git without a virtualization layer
MIT License
1.39k stars 63 forks source link

`brew upgrade` failed #467

Closed ptarjan closed 3 years ago

ptarjan commented 3 years ago
Updating Homebrew...
==> Auto-updated Homebrew!
Updated 1 tap (homebrew/core).
==> New Formulae
t-rec                                                                                                                     youtube-dlc
==> Updated Formulae
Updated 2 formulae.

==> Casks with `auto_updates` or `version :latest` will not be upgraded; pass `--greedy` to upgrade them.
==> Upgrading 1 outdated package:
microsoft/git/scalar-azrepos 20.06.171.1 -> 20.10.178.6
==> Upgrading scalar-azrepos
==> Downloading https://github.com/microsoft/scalar/releases/download/v20.10.178.6/Installers_macOS_Release.zip
Already downloaded: /Users/paul.tarjan/Library/Caches/Homebrew/downloads/444bd25065eb9c024cf3b2cfb11b40c42d93d981b6db15478aca35d1aeb5a695--Installers_macOS_Release.zip
All Formula dependencies satisfied.
==> Verifying SHA-256 checksum for Cask 'scalar-azrepos'.
==> Running uninstall script /usr/local/scalar/uninstall_scalar.sh
Password:
sudo launchctl kill SIGCONT gui/501/org.scalar.usernotification
Could not find service "org.scalar.usernotification" in domain for login: 100008
sudo /bin/rm -Rf /Library/LaunchAgents/org.scalar.usernotification.plist...
sudo launchctl kill SIGCONT gui/501/org.scalar.service
Unloading Service: 'launchctl bootout gui/501 /Library/LaunchAgents/org.scalar.service.plist'...
/Library/LaunchAgents/org.scalar.service.plist: Operation now in progress
==> Purging files for version 20.10.178.6 of Cask scalar-azrepos
Error: microsoft/git/scalar-azrepos: Failure while executing; `/usr/bin/sudo -E -- /usr/local/scalar/uninstall_scalar.sh` exited with 1. Here's the output:
sudo launchctl kill SIGCONT gui/501/org.scalar.usernotification
Could not find service "org.scalar.usernotification" in domain for login: 100008
sudo /bin/rm -Rf /Library/LaunchAgents/org.scalar.usernotification.plist...
sudo launchctl kill SIGCONT gui/501/org.scalar.service
Unloading Service: 'launchctl bootout gui/501 /Library/LaunchAgents/org.scalar.service.plist'...
/Library/LaunchAgents/org.scalar.service.plist: Operation now in progress

When I did it by hand it worked:

$ brew uninstall scalar-azrepos
==> Uninstalling Cask scalar-azrepos
==> Running uninstall script /usr/local/scalar/uninstall_scalar.sh
sudo launchctl kill SIGCONT gui/501/org.scalar.usernotification
Could not find service "org.scalar.usernotification" in domain for login: 100008
sudo /bin/rm -Rf /Library/LaunchAgents/org.scalar.usernotification.plist...
sudo launchctl kill SIGCONT gui/501/org.scalar.service
Could not find service "org.scalar.service" in domain for login: 100008
sudo /bin/rm -Rf /Library/LaunchAgents/org.scalar.service.plist...
sudo /bin/rm -Rf /usr/local/bin/scalar...
sudo /bin/rm -Rf "/Library/Application Support/Scalar"...
sudo /bin/rm -Rf /usr/local/scalar...
sudo /usr/sbin/pkgutil --forget com.scalar.pkg...
Forgot package 'com.scalar.pkg' on '/'.
Successfully uninstalled Scalar
==> Uninstalling packages:
==> Purging files for version 20.06.171.1 of Cask scalar-azrepos
~/robinhood/rh (c34f6b9eeef...) $ brew uninstall scalar-azrepos
$ brew install scalar-azrepos
Updating Homebrew...
==> Downloading https://github.com/microsoft/scalar/releases/download/v20.10.178.6/Installers_macOS_Release.zip
Already downloaded: /Users/paul.tarjan/Library/Caches/Homebrew/downloads/444bd25065eb9c024cf3b2cfb11b40c42d93d981b6db15478aca35d1aeb5a695--Installers_macOS_Release.zip
All Formula dependencies satisfied.
==> Verifying SHA-256 checksum for Cask 'scalar-azrepos'.
==> Installing Cask scalar-azrepos
==> Running installer for scalar-azrepos; your password may be necessary.
==> Package installers may write to any location; options such as --appdir are ignored.
installer: Package name is Scalar
installer: Installing at base path /
installer: The install was successful.
🍺  scalar-azrepos was successfully installed!
derrickstolee commented 3 years ago

Thanks for the report, @ptarjan. The good news is that org.scalar.usernotification will not exist in the next version (as of #458). I'll need to double-check that the uninstaller doesn't hard-fail when that doesn't exist, for future upgrade purposes.

I'm going to keep this issue open as a reminder to double-check the upgrade process during the next release cycle (early January).

github-actions[bot] commented 3 years ago

Labeling this issue as stale. There has been no activity for 30 days. Remove stale label or comment or this issue will be closed in 7 days.

ptarjan commented 3 years ago

Want to double check the upgrade cycle?

derrickstolee commented 3 years ago

Thanks for pointing this out, because something else went wrong. brew cask list is no longer around, and instead we need to run brew list --cask.

derrickstolee commented 3 years ago

I forgot to remove the no-activity label, but I do want to say that my previous comment was fixed by #487.