lazy.nvim/lua/lazy
Roger Kim 80da254e64
fix(rocks): add lib64 plugin directory to package.cpath (#1717)
## Description
`package.cpath` is missing the `lib64` directory for plugins that have
luarocks dependencies.

## Context
I found this issue when I was working on my new Neovim plugin on my
Fedora 39 machine. I added the `luasockets` dependency to rockspec file
in my plugin like so:

```
rockspec_format = "3.0"
package = "typeracer.nvim"
version = "scm-1"
source = {
	url = "git+https://github.com/carbon-steel/typeracer.nvim",
}
dependencies = {
	"luasocket",
}
test_dependencies = {
	"nlua",
}
build = {
	type = "builtin",
	copy_directories = {},
}

```

I found that the dynamic libraries from the `luasockets` dependency were
installed like so:
`/home/username/.local/share/nvim/lazy-rocks/typeracer.nvim/lib64/lua/5.1/socket/core.so`.
However, the only entry related to my plugin `typeracer.nvim` was:
`/home/glyph/.local/share/nvim/lazy-rocks/typeracer.nvim/lib/lua/5.1/?.so`.
The issue is that we only have the plugin's `lib` directory in
`package.cpath` and not `lib64`.

I looked through `lazy.nvim`'s code and I think adding the `lib64`
directory should fix the issue. I don't know if we also want to worry
about `lib32` as well, but so far, this change works for me.
2024-08-31 08:58:43 +02:00
..
community chore(build): auto-generate rockspec mappings 2024-06-26 04:22:43 +00:00
core fix(rocks): add lib64 plugin directory to package.cpath (#1717) 2024-08-31 08:58:43 +02:00
manage fix(plugins): "Vim:E150: Not a directory" on plugin update (#1679) 2024-07-25 12:53:01 +02:00
pkg fix(rocks): try building anyway even when prerequisits have not been met. (will likely fail) 2024-07-08 07:45:45 +02:00
view feat(ui): added mapping descriptions 2024-07-18 00:40:42 +02:00
async.lua fix(async): make asyncs abortable 2024-06-30 13:35:14 +02:00
build.lua ci: added neo to rockspec patterns 2024-06-26 06:22:23 +02:00
docs.lua docs: fix commands table. Fixes #1393 2024-03-28 12:15:31 +01:00
example.lua style: fix some typo (#1496) 2024-06-03 09:18:43 +02:00
health.lua fix(health): dont use vim.fn.system to get cmd versions 2024-07-22 14:38:00 +02:00
help.lua fix(help): get rid of any tbl_flatten or iter flatten code 2024-05-19 17:29:43 +02:00
init.lua docs: make bootstrap work on stable and nightly. Fixes #1391 2024-03-27 09:23:19 +01:00
minit.lua ci: add luassert to minitest for now 2024-07-13 09:45:01 +02:00
state.lua style: sort requires 2023-10-09 11:25:42 +02:00
stats.lua feat(profiling): merge VeryLazy stats and show startuptime in profile view 2024-07-04 15:17:10 +02:00
status.lua feat(ui): added statusline component to show pending updates 2022-12-05 20:49:45 +01:00
terminal.lua feat: added `opts.headless` to control ansi output when running headless 2024-06-26 21:38:28 +02:00
types.lua feat: added `opts.git.cooldown` to allow updating plugins on slow connections. Fixes #1656 2024-07-23 13:31:25 +02:00
util.lua fix(process): deal with process errors 2024-06-29 13:52:50 +02:00