jorgebucaran / fisher

A plugin manager for Fish
https://git.io/fisher
MIT License
7.77k stars 265 forks source link

fisher seems to uninstall packages immediately after installing #536

Closed sloane-shark closed 5 years ago

sloane-shark commented 5 years ago

I ran fisher self-update and now, when running fisher, all of my packages seem to be removed from the fishfile. Here is what it looked like starting with my original fishfile:

# fishfile
decors/fish-colored-man
edc/bass
fishpkg/fish-get
fishpkg/fish-spin
franciscolourenco/done
gyakovlev/fish-fzy
haslersn/fish-nix-completions
jethrokuan/z
joehillen/to-fish
jorgebucaran/fish-getopts
joseluisq/gitnow
laughedelic/pisces
matchai/spacefish
ohanhi/fish-elm-completions
sijad/gitignore

> fisher
fetching https://codeload.github.com/decors/fish-colored-man/tar.gz/master
fetching https://codeload.github.com/edc/bass/tar.gz/master
fetching https://codeload.github.com/fishpkg/fish-get/tar.gz/master
fetching https://codeload.github.com/fishpkg/fish-spin/tar.gz/master
fetching https://codeload.github.com/franciscolourenco/done/tar.gz/master
fetching https://codeload.github.com/gyakovlev/fish-fzy/tar.gz/master
fetching https://codeload.github.com/jethrokuan/z/tar.gz/master
fetching https://codeload.github.com/joehillen/to-fish/tar.gz/master
fetching https://codeload.github.com/jorgebucaran/fish-getopts/tar.gz/master
fetching https://codeload.github.com/joseluisq/gitnow/tar.gz/master
fetching https://codeload.github.com/laughedelic/pisces/tar.gz/master
fetching https://codeload.github.com/matchai/spacefish/tar.gz/master
fetching https://codeload.github.com/ohanhi/fish-elm-completions/tar.gz/master
fetching https://codeload.github.com/sijad/gitignore/tar.gz/master
fetching https://codeload.github.com/haslersn/fish-nix-completions/tar.gz/master
removed 15 packages in 33.20s

> fisher ls 

> tree -L 3 $fisher_config
/Users/mess/.config/fisher
└── local
    └── mess

> fisher add <fishfile.backup
fetching https://codeload.github.com/laughedelic/pisces/tar.gz/master
fetching https://codeload.github.com/sijad/gitignore/tar.gz/master
fetching https://codeload.github.com/joehillen/to-fish/tar.gz/master
fetching https://codeload.github.com/jethrokuan/z/tar.gz/master
fetching https://codeload.github.com/ohanhi/fish-elm-completions/tar.gz/master
fetching https://codeload.github.com/decors/fish-colored-man/tar.gz/master
fetching https://codeload.github.com/franciscolourenco/done/tar.gz/master
fetching https://codeload.github.com/haslersn/fish-nix-completions/tar.gz/master
fetching https://codeload.github.com/gyakovlev/fish-fzy/tar.gz/master
fetching https://codeload.github.com/joseluisq/gitnow/tar.gz/master
fetching https://codeload.github.com/fishpkg/fish-get/tar.gz/master
fetching https://codeload.github.com/edc/bass/tar.gz/master
fetching https://codeload.github.com/jorgebucaran/fish-getopts/tar.gz/master
fetching https://codeload.github.com/matchai/spacefish/tar.gz/master
fetching https://codeload.github.com/fishpkg/fish-spin/tar.gz/master
done in 14.38s

> fisher ls

> tree -L 3 $fisher_config
/Users/mess/.config/fisher
├── github.com
│   ├── decors
│   │   └── fish-colored-man
│   ├── edc
│   │   └── bass
│   ├── fishpkg
│   │   ├── fish-get
│   │   └── fish-spin
│   ├── franciscolourenco
│   │   └── done
│   ├── gyakovlev
│   │   └── fish-fzy
│   ├── haslersn
│   │   └── fish-nix-completions
│   ├── jethrokuan
│   │   └── z
│   ├── joehillen
│   │   └── to-fish
│   ├── jorgebucaran
│   │   └── fish-getopts
│   ├── joseluisq
│   │   └── gitnow
│   ├── laughedelic
│   │   └── pisces
│   ├── matchai
│   │   └── spacefish
│   ├── ohanhi
│   │   └── fish-elm-completions
│   └── sijad
│       └── gitignore
└── local
    └── mess

> fisher
removed 15 packages in 3.07s

No matter what I do I can't seem to get it to keep the entry in my fishfile. I've tried uninstalling and reinstalling fisher as well, to no avail.

sloane-shark commented 5 years ago

Going to close this issue, I restarted my laptop entirely and fisher seems to be functioning happily again. Presumably some transient environment issue.