withfig / fig

Public issue tracker for Fig.
https://fig.io
MIT License
2.05k stars 63 forks source link

brew upgrade completely reinstalls fig #1363

Open jonatan-ivanov opened 2 years ago

jonatan-ivanov commented 2 years ago

Sanity checks

Issue Details

Description:

After upgrading fig with homebrew brew upgrade --greedy, it behaves like it would be a completely new installation (I assume it is and the brew formulae wipes everything off and reinstalls fig). So users need to:

every single time they update fig.

Environment

The issue is not with fig itself but with its brew installer though here are a few relevant snippets:

 ❯ brew --version
Homebrew 3.4.7
Homebrew/homebrew-core (git revision 5d40e5c04c1; last commit 2022-04-23)
Homebrew/homebrew-cask (git revision 296885167a; last commit 2022-04-23)
 ❯ fig diagnostic
# Fig Diagnostics
## Fig details:
  - Fig version: Version 1.0.57 (B439) [U.S.]
  - Bundle path: /Applications/Fig.app
  - Autocomplete: true
  - Settings.json: true
  - Accessibility: true
  - Number of specs: 0
  - Symlinked dotfiles: true
  - Only insert on tab: false
  - Keybindings path:
  - Installation Script: true
  - PseudoTerminal Path: [...]
  - SecureKeyboardInput: false
  - SecureKeyboardProcess: <none>
## Hardware Info:
  - Model Name: MacBook Pro
  - Model Identifier: MacBookPro16,1
## OS Info:
  - macOS 12.3.1 (21E258)
mschrage commented 2 years ago

Hey @jonatan-ivanov! Thanks for reporting this.

I think we will need to modify our uninstall script so that it takes an additional flag (fig app uninstall --zap) which will perform a more comprehensive deletion procedure.

Then we can have slightly different behaviors for a normal uninstall vs a zap. We'll need to modify the cask as well.

clo4 commented 2 years ago

Same thing happens when running brew upgrade fig