nvim-neorocks / rocks-dev.nvim

A swiss-army knife for testing and developing rocks.nvim modules.
GNU General Public License v3.0
14 stars 3 forks source link

Bug: rocks-dev can't install local version of plugin that other plugins depend on #31

Open benlubas opened 1 month ago

benlubas commented 1 month ago

I want to have neorg installed via rocks-dev, and neorg-se installed normally from luarocks, but neorg-se depends on neorg, so when I list neorg = { dev = true } the plugin tries and fails to uninstall neorg. And the local version of neorg is not loaded.

log after running :Rocks sync with dev neorg and luarocks versions of a few neorg modules:

[START][2024-07-29 13:48:55] rocks.nvim logging initiated
ERROR | 2024-07-29 13:49:02 | ....local/share/nvim/rocks/rocks_rtp/lua/rocks/luarocks.lua:65 | luarocks CLI FAILED
ERROR | 2024-07-29 13:49:02 | ....local/share/nvim/rocks/rocks_rtp/lua/rocks/luarocks.lua:66 | Will not remove neorg 9.1.1-1.
Removing it would break dependencies for: 
neorg-interim-ls 1.2.0-1
neorg-telescope 1.2.2-1
neorg-se 1.1.10-1
neorg-conceal-wrap 1.0.0-1

Use --force to force removal (warning: this may break modules).

Error: Failed removing.

ERROR | 2024-07-29 13:49:02 | ...share/nvim/rocks/rocks_rtp/lua/rocks/operations/sync.lua:48 | SYNC ERROR: rocks-dev: Failed to remove neorg
ERROR | 2024-07-29 13:49:11 | ...share/nvim/rocks/rocks_rtp/lua/rocks/operations/sync.lua:267 | Sync completed with errors! Run ':Rocks log' for details.

Few questions I guess:

mrcjkb commented 1 month ago

Hey πŸ‘‹

That's currently not possible, but it's on the horizon.

So many construction sites πŸ˜