paq-nvim icon indicating copy to clipboard operation
paq-nvim copied to clipboard

Paq doesn't reinstall a plugin when remote is changed

Open nabaco opened this issue 3 years ago • 0 comments

Describe the bug When switching a plugin from one git remote to another git remote, Paq doesn't recognize that and doesn't upgrade the plugin.

To Reproduce

  1. Install a package: e.g. 'glepnir/lspsaga.nvim'; && PaqInstall
  2. Change the package source: e.g. 'tami5/lspsaga.nvim';
  3. Run PaqSync

Expected behavior It is expected that Paq will recognize that the package source change, and re-install it. Either by manually changing the git-remote and doing git-pull, or (to be on the safe side) by deleting the original package and installing the new one.

Environment:

  • nvim --version:
    Build type: RelWithDebInfo
    LuaJIT 2.1.0-beta3
    Compilation: /usr/bin/gcc-11 -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=1 -DNVIM_TS_HAS_SET_MATCH_LIMIT -O2 -g -Og -g -Wall -Wextra -pedantic -Wno-unused-parameter -Wstrict-prototypes -std=gnu99 -Wshadow -Wconversion -Wmissing-prototypes -Wimplicit-fallthrough -Wvla -fstack-protector-strong -fno-common -fdiagnostics-color=always -DINCLUDE_GENERATED_DECLARATIONS -D_GNU_SOURCE -DNVIM_MSGPACK_HAS_FLOAT32 -DNVIM_UNIBI_HAS_VAR_FROM -DMIN_LOG_LEVEL=3 -I/home/runner/work/neovim/neovim/build/config -I/home/runner/work/neovim/neovim/src -I/home/runner/work/neovim/neovim/.deps/usr/include -I/usr/include -I/home/runner/work/neovim/neovim/build/src/nvim/auto -I/home/runner/work/neovim/neovim/build/include
    Compiled by runner@fv-az65-618
    
    Features: +acl +iconv +tui
    See ":help feature-compile"
    
    system vimrc file: "$VIM/sysinit.vim"
    fall-back for $VIM: "/home/runner/work/neovim/neovim/build/nvim.AppDir/usr/share/nvim"
    
    Run :checkhealth for more info
    
  • git --version: git version 2.25.1
  • OS:
    DISTRIB_ID=Ubuntu
    DISTRIB_RELEASE=20.04
    DISTRIB_CODENAME=focal
    DISTRIB_DESCRIPTION="Ubuntu 20.04.3 LTS"
    

nabaco avatar Jan 03 '22 08:01 nabaco