From b11e2883f52b1591fd1403005d738dccbae3dfff Mon Sep 17 00:00:00 2001 From: Mathias Fussenegger Date: Thu, 28 Nov 2024 10:15:19 +0100 Subject: [PATCH 1/2] Change .busted lua to `nlua` with no absolute path For reasons outlined in https://github.com/nvim-lua/nvim-lua-plugin-template/issues/19 --- .busted | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.busted b/.busted index 61d98b0..8c64018 100644 --- a/.busted +++ b/.busted @@ -2,7 +2,7 @@ return { _all = { coverage = false, lpath = "lua/?.lua;lua/?/init.lua", - lua = "~/.luarocks/bin/nlua", + lua = "nlua", }, default = { verbose = true From a7d4dd21a5df6d89850de2b517e223be75ed9bb3 Mon Sep 17 00:00:00 2001 From: Mathias Fussenegger Date: Thu, 28 Nov 2024 10:17:31 +0100 Subject: [PATCH 2/2] Extend readme with luarocks lua 5.1 version requirement --- README.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/README.md b/README.md index e5492d3..ae2c3f6 100644 --- a/README.md +++ b/README.md @@ -80,6 +80,10 @@ If you see an error like `module 'busted.runner' not found`: eval $(luarocks path --no-bin) ``` +For this to work you need to have Lua 5.1 set as your default version for +luarocks. If that's not the case you can pass `--lua-version 5.1` to all the +luarocks commands above. + [rockspec-format]: https://github.com/luarocks/luarocks/wiki/Rockspec-format [luarocks]: https://luarocks.org [luarocks-api-key]: https://luarocks.org/settings/api-keys