jorgebucaran / fisher

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

Fisher uninstalls all plugins when run #731

Closed ghost closed 2 years ago

ghost commented 2 years ago

A simple fisher update and I get the following output:

fisher install version 4.4.2
fish: Unknown command: '/usr/bin/fish (deleted)'
- (line 85): 
                $fish_path --command "
                    if test -e $plugin
                        command cp -Rf $plugin/* $source
                    else
                        set temp (command mktemp -d)
                        set repo (string split -- \@ $plugin) || set repo[2] HEAD

                        if set path (string replace --regex -- '^(https://)?gitlab.com/' '' \$repo[1])
                            set name (string split -- / \$path)[-1]
                            set url https://gitlab.com/\$path/-/archive/\$repo[2]/\$name-\$repo[2].tar.gz
                        else
                            set url https://api.github.com/repos/\$repo[1]/tarball/\$repo[2]
                        end

                        echo Fetching (set_color --underline)\$url(set_color normal)

                        if curl --silent -L \$url | tar -xzC \$temp -f - 2>/dev/null
                            command cp -Rf \$temp/*/* $source
                        else
                            echo fisher: Invalid plugin name or host unavailable: \\\"$plugin\\\" >&2
                            command rm -rf $source
                        end

                        command rm -rf \$temp
                    end

                    set files $source/* && string match --quiet --regex -- .+\.fish\\\$ \$files
                " &
                ^
in function 'fisher' with arguments 'install jorgebucaran/fisher'
Installing jorgebucaran/fisher
Installed 1 plugin/s

Then all my plugins are gone.

ghost commented 2 years ago

Clean reinstall on the same version seems to have fixed everything. Since I did not include precise runtime info, it is now lost. This issue isn't much use without it.