folke / lazy.nvim

💤 A modern plugin manager for Neovim
https://lazy.folke.io/
Apache License 2.0
14.7k stars 354 forks source link

bug: lazy will not build `jsregexp` by rockspec #1692

Open ofseed opened 3 months ago

ofseed commented 3 months ago

Did you check docs and existing issues?

Neovim version (nvim -v)

v0.11.0-dev-3666+g01a56a056

Operating system/version

Arch Linux

Describe the bug

As the doc said:

A rockspec will only be used if one of the following is true:

  • the package does not have a /lua directory
  • the package has a complex build step
  • the package has dependencies (excluding lua) Lazy should install jsregexp when given the following spec:
    { "kmarius/jsregexp" }

    But it does not. This approach takes effects on installing magick. Is there a bug here or did I misunderstand the documentation?

Steps To Reproduce

Try the following plugin spec:

{ "kmarius/jsregexp" }

by the repro.lua. Even

{ "kmarius/jsregexp", build = "rockspec" }

will fail.

Expected Behavior

jsregexp will be installed and the dynamic library be built.

Repro

vim.env.LAZY_STDPATH = ".repro"
load(vim.fn.system("curl -s https://raw.githubusercontent.com/folke/lazy.nvim/main/bootstrap.lua"))()

require("lazy.minit").repro({
  spec = {
    "kmarius/jsregexp"
  },
})
github-actions[bot] commented 2 months ago

This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 7 days.

ofseed commented 2 months ago

Still exits.

github-actions[bot] commented 1 month ago

This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 7 days.

ofseed commented 1 month ago

Still exits.

github-actions[bot] commented 2 days ago

This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 7 days.