Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • 01:22
    nfearnley edited #1391
  • 01:22
    nfearnley labeled #1391
  • 01:22
    nfearnley opened #1391
  • Jan 20 18:05
    codecov-commenter commented #1390
  • Jan 20 18:02
    codecov-commenter commented #1390
  • Jan 20 17:59
    codecov-commenter commented #1390
  • Jan 20 17:50
    codecov-commenter commented #1390
  • Jan 20 17:29
    Aire-One opened #1390
  • Jan 20 17:09
    Aire-One commented #1389
  • Jan 20 04:04
    daurnimator commented #1389
  • Jan 19 20:07
    Aire-One labeled #1389
  • Jan 19 20:07
    Aire-One opened #1389
  • Jan 11 21:02
    hishamhm closed #1388
  • Jan 11 21:01
    hishamhm commented #1388
  • Jan 11 19:39
    tommy-mor labeled #1388
  • Jan 11 19:39
    tommy-mor opened #1388
  • Jan 10 02:32
    daurnimator commented #1387
  • Jan 10 02:28
    yuekunjava opened #1387
  • Jan 04 20:17
    hishamhm commented #1386
  • Jan 04 08:17
    chrpsh commented #1386
nepta
@Nepta
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 :
I don't think it publishes rocks, but once luarocks is setup in the environment it may be a matter of running luarocks upload (and maybe luarocks new_version to generate a new rockspec?) and storing your API key as an environment secret
I have next to no experience with Github Actions but I've seen similar things done with Travis CI in the past
Caleb Maclennan
@alerque
Thanks @hisham_hm:matrix.org. I'm already a prolific gh-actions-luarocks user :smiley_cat:. I was just looking for something with a workflow that included luarocks upload to compare notes with to make sure I wasn't overlooking something.
Matthieu Coudron
@teto
if I install a package with lua_modules_path = "" then it installs with a flat hierarchy except for the files referenced by the rockspec's copy_directories field (they are in name-version-rocks/name/version). Would that make sense to install them at the root too ?