Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • Aug 05 17:00
    cerealXDD opened #1429
  • Jul 28 03:51
    happanda commented #905
  • Jul 27 04:30
    riotrah commented #1001
  • Jul 22 04:50
    ChildishGiant commented #1426
  • Jul 21 09:07
    osch edited #1428
  • Jul 21 09:00
    osch opened #1428
  • Jul 21 09:00
    osch labeled #1428
  • Jul 20 19:35
    robjwells labeled #1427
  • Jul 20 19:35
    robjwells opened #1427
  • Jul 19 22:40
    hishamhm closed #1426
  • Jul 19 22:40
    hishamhm commented #1426
  • Jul 19 12:50
    ChildishGiant commented #1426
  • Jul 19 12:49
    ChildishGiant opened #1426
  • Jul 19 12:49
    ChildishGiant labeled #1426
  • Jul 19 08:05
    kulti commented #1414
  • Jul 14 13:24
    carnei-ro commented #952
  • Jul 12 03:46
    cosmo0920 closed #1063
  • Jul 12 03:46
    cosmo0920 commented #1063
  • Jul 09 10:13
    vadi2 opened #1425
  • Jul 09 10:13
    vadi2 labeled #1425
Caleb Maclennan
@alerque
I can download the manifest manually in a browser, but LuaRocks can't seem to fetch it (this is with the older luasocket release per Arch‌ Linux system packages installed, not with the shinny new release yet).
Matthieu Coudron
@teto
@hishamhm thanks <3 Would be cool to have test_dependencies and test added to https://github.com/luarocks/luarocks/wiki/Rockspec-format . I would like more packages to use that since it helps me packaging them on the nixos side but it's hard to ask people to do it without the doc. I've tried with luv https://github.com/luarocks/luarocks/wiki/Rockspec-format luvit/luv#592 and it looks successful so far
Caleb Maclennan
@alerque
Yes, test_dependencies lists and a way to run whatever test function is used programmatically would be great for Arch Linux packaging too.
Hisham Muhammad
@hishamhm
@teto Updated! https://github.com/luarocks/luarocks/wiki/Rockspec-format — added a section on the test table there (and converted the page from MediaWiki to Markdown...)
IIRC we had to block the wiki from general editing due to spam... I wonder if there's a way to accept PRs for wiki pages?? it is a git repo as well, after all
Hisham Muhammad
@hishamhm
@alerque no idea what's the issue there. LuaSocket 3.0.0 just installed fine here! And major kudos for the release milestone!
Caleb Maclennan
@alerque
You might reserve the kudos until we're sure it didn't just blow up, especially on the completely untested Windows side of things! I didn't do the hard work writing the library anyway, most of that work was done years ago by others. I just slapped a tag on it (and a little bit of release machinery). That being said so far we only have one new bug report and that is from openresty and not clearly related to the release, so I'm still crossing my fingers...
Caleb Maclennan
@alerque
On another note, I'm actually kind of surprised a few thousand people have downloaded Luacheck v0.26.0 and not a single one of them has come around to complain about the new lint warnings.
Hisham Muhammad
@hishamhm
a lot of those numbers are CI runs
Kollol Chowdhury
@KollolChowdhur4_twitter
Hi..Want to know if Luarocks uses Apache Hive 2.8..As we are using Kong which comes preinstalled with Luarocks and using the latest version,but on running blackduck security scan,it shows critical security vulnerability in Apche Hive 2.8 which is being used in Luarocks
Caleb Maclennan
@alerque
@KollolChowdhur4_twitter That sounds totally bogus, at least as far as LuaRocks is concerned. What Kong might be doing or what else you may have involved in your app I can't speak to, but LuaRocks itself (the command line tool for building and installing Lua modules) has nothing to do with Hive.
nightlyherb
@nightlyherb
Hello
I am trying to install LuaRocks on Windows (which failed today and I'm going to retry later). My question is, the 64bit standalone executable does nothing, is it a bug or is it intended?
Caleb Maclennan
@alerque
I'm sure that's not intended. Where did you download the binary from?
3 replies
nightlyherb
@nightlyherb
Unrelated to the question above, I finally got Luarocks to work! Another question:1. config-5.1.lua lists the c compiler toolchain path. Does it mean that the c compiler does not have to be in $PATH if I can specify them manually?
nightlyherb
@nightlyherb
I think... installing LuaRocks in Windows is so finicky that I think it's easier to compile from source
nightlyherb
@nightlyherb

Before I raise a new issue I'll check here if there's any duplicates.

Issue: LuaRocks requires the Lua interpreter to be compiled with the same compiler used for compiling C extensions.

Issue description:

  • I used the all-in-one distribution of LuaRocks in https://luarocks.github.io/luarocks/releases/luarocks-3.9.0-win32.zip
  • I installed luarocks with install.bat /P <directory> /MW /NOREG /NOADMIN /L (as far as I remember)
    • /L, used the bundled Lua interpreter
    • /MW, the C Compiler in PATH is MinGW-w64 from winlibs.com
  • I tried to install teal with luarocks install tl, which involves compiling C code
  • The compiler errors when linking with lua5.1.lib
  • When I compiled Lua manually with mingw compiler and used that instead, there were no errors (both in LuaJIT 2.1.0-beta3 and in Lua 5.1.5)
2 replies
nightlyherb
@nightlyherb
Why are some paths hardcoded in LuaRocks while others are configurable?
3 replies
nightlyherb
@nightlyherb

I am trying to install LuaRocks on Windows (which failed today and I'm going to retry later). My question is, the 64bit standalone executable does nothing, is it a bug or is it intended?

Okay, so this doesn't happen in 3.8.0 but only in 3.9.0 (both 32 and 64 bit executables)
I'll file an issue on Github if it isn't a duplicate.

chπ
@kaklakariada

Hi all!
I am working at Exasol and we are working on an SQL driver for our database, based on LuaSQL.

We would like to publish the driver it on Luarocks. I have a question regarding this: is it possible to create an organization (similar to a github org) on Luarocks, and give my colleagues the permission to publish new versions?

If this is not possible we would create an exasol user on Luarocks.org and use that for publishing.

We already have some other projects published by my colleague @redcatbear. Would it be possible to migrate his projects to the new exasol user?

Thank you for your help!
Kind regards,
Christoph / @kaklakariada

Caleb Maclennan
@alerque
No there is not a shared access / org system. The closest you can do is create a dedicated user, then add API keys and issue individuals you want to grant access each their own API key from the account. You/the admin can control the account and password and issue/revoke API keys, everybody else can only use luarocks functions via the key.
@kaklakariada ^^^
For migration of existing projects you can do that pretty easily by pinging @hishamhm on here and demonstrate your access to the granting side.
chπ
@kaklakariada
@alerque Great, thank you for your answers!
1 reply
Oleksandr
@MrSyabro
Hello. My question is: how can I get the path to the files that were entered in build.install.conf regardless of the platform?
Hisham Muhammad
@hishamhm
@MrSyabro build.install.conf is a very old feature that has been kept around for legacy reasons... it doesn't really interact with the OS configuration paths... from the CLI the best you can do is luarocks show --rock-dir rockname and add /conf to that; this is where files from that conf table are installed
Oleksandr
@MrSyabro
@hishamhm Where can I find more recent documentation than on github?
eagleandlion
@eagleandlion
This message was deleted
10 replies
eagleandlion
@eagleandlion
How to install Luaossl?
eagleandlion
@eagleandlion
still didnt manage to install luaossl. But... after trying NixOS (that really sucked), i checked with Fedora. And Fedora seems to handle Lua and Luarocks way better. At least there was not problem installing lpeg this time. Luaossl is still the problem.
@alerque Ubuntu + Lua/Luarocks = Pain! Recommend Fedora.
Hisham Muhammad
@hishamhm
LuaRocks was at last updated to 3.x in the latest Ubuntu: the repo for Ubuntu 22.04 includes LuaRocks 3.8.0. Prior to that, old versions have a 5-year old 2.4.x version (that old version no longer works with git://github.com URLs due to Github's changes).
wolfiR
@wrosenauer:matrix.org
[m]
speaking about github's changes: just ran into the issue that https://luarocks.org/luasql-mysql-2.6.0-1.rockspec defines git://github.com/keplerproject/luasql.git as URL so installation fails
anywhere to report this so it can be fixed?
wolfiR
@wrosenauer:matrix.org
[m]
or would a newer version of luarocks transparently fix that issue? (trying to understand the previous conversation)
Thijs Schreijer
@Tieske
newer version of LuaRocks transparently fixes that, or alternatively setup git to deal with it
something like this: git config --global url.https://github.com/.insteadOf git://github.com/
wolfiR
@wrosenauer:matrix.org
[m]
thanks for the hint. Since my usecase is building a container image your git config proposal is the easiest for now. Was now able to create the image
Tyler Ball
@tyler-ball
Howdy! I'm one of the engineers at Kong and I'm working on getting some protobuf files included in our package. I'm leaning towards using the build.copy_directories rockspec capability to include these files, but I'm not sure how to then look up the path to the proto files after our rock is installed. Locally they end up in /usr/local/lib/luarocks/rocks-5.1/kong/2.8.0-0 (next to the rockspec) - is there some way in the luarocks library I could look up this path? Something that would return me the location of the rockspec perhaps? I tried require("luarocks.loader").which("kong") but this returns /usr/local/share/lua/5.1/kong/init.lua (which is where all the lua files end up, but not the copy_directories folders). Any suggestions?
And making it a more generalized question - how have people included non-lua dependencies (like protobuf definitions) inside their rocks and then referenced those?
colevalleygirl
@colevalleygirl
hoping to find some help here! I need to build lpeg (and possibly other modules) for a 32 bit environment, using the Visual Studio compiler/linker in a 64-bit Windows environment. (Mingw is not an option unless there is really no other way to do it). Uisng luarocks install lepg, the relevant lpeg.dll is generated but I get the error in a 32-bit environment when I require it: error loading module 'lpeg' from file 'C:\Program Files (x86)\XXXX\Program\Lua\lpeg.dll':
%1 is not a valid Win32 application. Is there a way to force 32 bit compile/link?
Hisham Muhammad
@hishamhm
I've contacted Tyler offline, but for general information, the approaches we discussed were to derive the lib/luarocks path from the second and third results of loader.which which provide the rock name and version.
@colevalleygirl I'm not sure what's the correct incantation is for 32-bit MSVC. Perhaps someone else knows some flag that can be passed via luarocks config variables.CFLAGS "/SOME_MAGIC_FLAG"?
Oleksandr
@MrSyabro
@hishamhm luarocks show --rock-dir rockname how can i get the same result inside the code
1 reply
Amine Aboufirass
@awa5114

Hi guys. I tried to install Lua using install.bat but got an error:

Could not find Lua. See /? for options for specifying the location of Lua, or installing a bundled copy of Lua 5.1

So then I tried install.bat /LUA C:\Users\aa\Desktop\SETUPS\luarocks-3.9.0-win32\win32\lua5.1\

I still got the same error.

How do I install lua + luarocks ?

Vladislav Grubov
@ochaton
Hello guys! Does anyone tried to build mirror of rocks repository? (private one, not luarocks.org). What should be a proper way to do this?
Hisham Muhammad
@hishamhm
@ochaton Do you mean building a private mirror of the rocks repository at luarocks.org? The easiest way is to clone the official Github mirror, which is at https://github.com/rocks-moonscript-org/moonrocks-mirror/
wauterboi
@wauterboi
Say I do luarocks init and then ./luarocks install penlight --pin - why doesn't this get written to the luarocks.lock file?
Am I misunderstanding how --pin is meant to work?
wauterboi
@wauterboi
I guess I'm trying to replicate the functionality of npm install <package> --save, or something along those lines.