Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • May 20 21:17
    sewbacca commented #924
  • May 18 04:17
    codecov-commenter commented #1419
  • May 18 03:26
    hishamhm opened #1419
  • May 18 03:26

    hishamhm on fix-1418

    avoid crash if variables.LUA* a… (compare)

  • May 18 03:25

    hishamhm on master

    fix error message when Lua libr… binary build: help autodetectio… (compare)

  • May 18 03:24
    hishamhm commented #1418
  • May 18 01:54
    echiesse commented #1418
  • May 18 00:42
    hishamhm commented #1418
  • May 18 00:10
    echiesse opened #1418
  • May 18 00:10
    echiesse labeled #1418
  • May 14 00:16
    actually-reb commented #1001
  • May 13 06:54
    kevinhwang91 labeled #1417
  • May 13 06:54
    kevinhwang91 opened #1417
  • May 09 18:06
    hishamhm deleted #1416
  • May 09 17:46
    BloBroPro opened #1416
  • May 06 14:06
    aashimgarg closed #1137
  • May 03 23:13
    hishamhm commented #1001
  • May 03 21:16
    badrazizi commented #1001
  • May 03 19:42
    hishamhm commented #1412
  • May 03 19:41
    hishamhm closed #1412
nepta
@Nepta
hello there
anyone know how to manage multiple version of lua with luarocks ? (in particular having lua5.3 and luajit)
nepta
@Nepta
i am using luaver already to manage my version, but it's weird, i think it want reinstall luarocks when you change your lua version ?
nepta
@Nepta
ok, i think i managed something
by having a config-5.1.lua in etc/config/ with correct variable to point to luajit binary / lib i can use luarocks --lua-version 5.1 to make it manage my luajit config
now i only need to make a wrapper to set the correct LUA_PATH / LUA_CPATH when using luajit
lol main function has more than 120 local variables
hisham_hm
@hisham_hm:matrix.org
[m]
@Nepta you can use the flag --lua-version 5.x, or luarocks --local config lua_version 5.x to set the default permanently
nepta
@Nepta
yes, it's what i use currently
but, to be honnest i did have some issue because i use luavela instead of the standard luajit
and it seem that luarocks have the names hardcoded when looking for the binary (either lua5.1 or luajit)
for now, i adding table.insert(names, "luavela) in util.lua work for me, but i am not familiar enough with luarocks config file, is there a way to add it in config-5.1.lua in some way ? it seem to have a field for it (lua_interpreter)
hisham_hm
@hisham_hm:matrix.org
[m]
yes, you can change the name of the interpreter
nepta
@Nepta
another question, can the "builtin" back-end compile cpp code ?
hisham_hm
@hisham_hm:matrix.org
[m]
no, but there is a cpp backend available in luarocks.org which you can specify using build_dependencies!
nepta
@Nepta
nice ! i will look into it, for now i did a makefile with 'g++' harcoded in it, but the wiki seem to say that it's not a good idea
nepta
@Nepta
'-'
i just saw that you are an admin on luarocks
thanks for your responses
hisham_hm
@hisham_hm:matrix.org
[m]
you're welcome!
alexojo
@alexojo
hello, how could I install CGILUA with LuaRocks on Ubuntu 20.04.
I was installing it by the command "luarocks install cgilua", but my .lp file does not recognize the lua statements.
Erutuon
@Erutuon
Hi, I just noticed that the lpack rock, managed by Luarocks, is indicated as compatible with Lua 5.1, but it doesn't actually compile because it uses a Lua 5.0 type name, luaL_reg (changed to luaL_Reg in Lua 5.1 when it was added to the manual). It must be based on the 5.0 version from LHF's site. Could it be fixed or at least marked as Lua 5.0 only?
Maybe not worth fixing because it's not maintained anymore (and was published with separate source code for each Lua version).
Matthieu Coudron
@teto
hi, si I am looking into luarocks to handle vim plugin management: as of neovim 0.5, there are many lua plugins and they still require everyone to manually setup the plugin dependencies in their init.lua. My hope is that we can use the rockspec format to communicate the dependencies and eventually use luarocks to disseminate these plugins. I wonder if this could be a problem to the luarocks infra/organization ? if not is there any recommendation as to how to handle that ? It's potentially a lot of new packages. Should we use a "neovim" manifest to help with discoveribility for instance ?
Hisham Muhammad
@hishamhm
@teto this should not be a problem from the luarocks side, other projects use luarocks infra for managing plugins (Kong, Mjolnir). As for discoverability, I don't personally think a separate manifest is needed. mjolnir just used the "mjolnir" label, whereas kong uses a kong-plugin-foo naming convention.
Matthieu Coudron
@teto
thanks. That's what I thought but prefered to check
Matthieu Coudron
@teto
seems like labels are not loaded automatically, at least when I go to https://luarocks.org/edit/modules/teto/plenary.nvim I dont see any "neovim" label even though the rockspec specifies it
how can I search by label ?
Matthieu Coudron
@teto
nevermind https://luarocks.org/labels/neovim for instance
Matthieu Coudron
@teto
the changelog doens't contain any entry for v3.7 :(
btw I maintain an out-of-tree luarocks additional command luarocks nix and I would like to "find" a file (a .rockspec) in a folder. I can't find any luarocks function for that. Should I just os.execute and parse the result ?
william behrens
@WilliamBehrens_gitlab
is it possible to create an executable(either by calling shell commands or some other method) using luarocks as a build system?
Kartik Verma
@vkartik97
I am facing this issue while installing busted
Step 8/14 : RUN luarocks install busted
 ---> Running in 598794b4c914
Warning: The directory '/root/.cache/luarocks' or its parent directory is not owned by the current user and the cache has been disabled. Please check the permissions and owner of that directory. If executing /usr/local/bin/luarocks with sudo, you may want sudo's -H flag.
Warning: Failed searching manifest: Failed fetching manifest for https://luarocks.org - Failed downloading https://luarocks.org/manifest - /tmp/luarocks_local_cache-IAhOjH/https___luarocks.org/manifest
Warning: Failed searching manifest: Failed fetching manifest for https://raw.githubusercontent.com/rocks-moonscript-org/moonrocks-mirror/master/ - Failed downloading https://raw.githubusercontent.com/rocks-moonscript-org/moonrocks-mirror/master/manifest - /tmp/luarocks_local_cache-IAhOjH/https___raw.githubusercontent.com_rocks-moonscript-org_moonrocks-mirror_master_/manifest

Installing http://luafr.org/moonrocks/busted-2.0.0-1.rockspec

Error: Could not satisfy dependency lua_cliargs == 3.0: No results matching query were found.
Missing dependencies for busted 2.0.0-1:
   lua_cliargs == 3.0 (not installed)
   luasystem >= 0.2.0 (not installed)
   dkjson >= 2.1.0 (not installed)
   say >= 1.3 (not installed)
   luassert >= 1.8.0 (not installed)
   lua-term >= 0.1 (not installed)
   mediator_lua >= 1.1.1 (not installed)

busted 2.0.0-1 depends on lua_cliargs == 3.0 (not installed)
tried sudo rm -rf ~/.luarocks but doesn't solve the issue
Matthieu Coudron
@teto
nevermind my issue I found the fs.find function
Matthieu Coudron
@teto
any formatter in use on luarocks codebase ? like luaformatter ?
hisham_hm
@hisham_hm:matrix.org
[m]
no, it's formatted by hand
Matthieu Coudron
@teto
would you accept any PRs addressing luacheck issues, formatting Github actions ? (like stylua or luaformatter). You can check https://github.com/neovim/nvim-lspconfig/pulls for examples
hisham_hm
@hisham_hm:matrix.org
[m]
it is not, that is a mistake in the rockspec (or it is a template for generating other rockspecs? I'm not familiar with that project)
re PRs for luacheck reports, I do not consider absolutely everything that luacheck reports to be an issue. We have a style guide repo in the luarocks org which I try to follow
Marcus
@Mehgugs
Is there a way to get luarocks to build a c library instead of asking for it as an external dependency
I'd like to include it as a git submodule checked out to a specific version
Matthieu Coudron
@teto
ok thanks, I submitted a PR now merged to fix the basexx rockspec
ghosttown
@ifeelfreeee:matrix.org
[m]
hey hisham i got a question regarding luarocks's init command. It looks like the lua script that it comes with it's not picking up lua_modules? I'm running lua 5.3 and luarocks 3.7.0. thanks
#!/bin/sh

LUAROCKS_SYSCONFDIR='/usr/local/etc/luarocks' exec '/usr/bin/lua5.3' -e 'package.path="/home/mrtn/.luarocks/share/lua/5.3/?.lua;/home/mrtn/.luarocks/share/lua/5.3/?/init.lua;/usr/local/share/lua/5.3/?.lua;/usr/local/share/lua/5.3/?/init.lua;"..package.path;package.cpath="/home/mrtn/.luarocks/lib/lua/5.3/?.so;/usr/local/lib/lua/5.3/?.so;"..package.cpath' $([ "$*" ] || echo -i) "$@"
that's the one i got on a fresh init
Caleb Maclennan
@alerque
Anybody have good examples of LuaRocks being published from GitHub Actions handy?
hisham_hm
@hisham_hm:matrix.org
[m]
ghosttown that's odd! It should have picked it up! maybe some environment variable is messing things up?
perhaps this may be useful, @alerque :