Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
JumBê
@JumBe08
Well, uh, tbh i was just trying to discover how to really use the luarocks-admin tool
im doing this project for GSoC at prosody
where i am trying to make a plugin installer
btw, i saw farther behind in the conversation that you guys applied to GSoC too, but i missed it when i was searching through the orgs. I'll probably try to apply next year, if possible =D
anyway, we are doing a plugin installer, and i got some bridges to luarocks and luarocks-admin
and i was trying to test if my luarocks-admin implementation is working, so i was trying to really use luarocks-admin add
but i wanted to use my own server, because that's what we'll eventually do at prosody. Put those modules up somewhere on the web, and then i think this add command we'll be a easier way to add stuff there over time
will*
JumBê
@JumBe08
will be an easier*, thats the spelling xD
JumBê
@JumBe08
Guys, I got another question regarding luarocks =D
so lets say im making a rockspec. I got one folder with 2 files, for example source.lua and source.lib.lua
i know how to configure source.lua at the rockspec
at the build section i go to modules
and i wirte something like this: ["mod_source.mod_source"] = "mod_source/mod_source.lua"
but i cannot do the same for the other file. I try this: ["mod_source.mod_source.lib"] = "mod_source/mod_source.lib.lua"
it will create a lib directory instead of a file and the starting directory
the problem is that one file is named something.lua. How do you do if the file is named something.lib.lua? Because luarocks is looking at the "." and assumes it should open another folder
JumBê
@JumBe08
Greetings. I've made a very brave attempt at writing a blog posts about some basics regarding luarocks and how to use it. Decided to stop by and drop it here, in the hopes of collecting all the feedback/tips I can. Thanks for the attention and the help these last weeks =]
daurnimator
@daurnimator
@JumBe08 a nice thing to mention would be the new --lua-version argument in luarocks 3
it's underdocumented; but hugely useful
JumBê
@JumBe08
@daurnimator I'll give it a look O.o
Caleb Maclennan
@alerque
A major new version of Luarocks has a hugely useful new argument that nobody bothered to document? Nice. :headddesk:
daurnimator
@daurnimator
alerque: is that volunteering I hear? :)
JumBê
@JumBe08
You guys know any cool tutorials/posts detailing how to use arguably underdocumented luarocks features?
For example, I'd be super interested in some1 showing how to use the luarocks-admin command to its full potential
daurnimator
@daurnimator
not really..... I just learned by doing --help and trying them al
JumBê
@JumBe08
Even though there is clearly a good effort to document things, I've found that to be a bit painful =[
daurnimator
@daurnimator
but it's not well maintained... some of the info in there is quite outdated
JumBê
@JumBe08
yes, I noticed
still has got some neat stuff
but at least for me it works okay as long as im doing exactly what is in there
if I want to make something different i struggle a bit
but it might be because i need to know what im doing with other tools, that arent really luarocks related, and therefore dont have to be documented there
daurnimator
@daurnimator
jumbe08: if you do find outdated things, please do update them :D
JumBê
@JumBe08
Should I? I dont even know what im really doing most of the time
welp, but some things i surely could
i noteiced, for example, that the docs for luarocks-admin add still document an --index flag
but that isnt at the respective terminal command help
daurnimator
@daurnimator
JumBe08: if you're not sure about something, just ask here and I or hisham can probably clarify. But otherwise please do update the wiki!
JumBê
@JumBe08
@daurnimator oki, thanks O.o
_kacper
@dracconi
hi, i have this problem when i execute luarocks i get Access is denied. and that it cant find 5.1 interpreter :/. i have compiled lua 5.1.5 with mingw i believe and i have it under d:\lua\5.1, luarocks lives in a neighboring directory. it doesnt show this error while i am in elevated prompt, so i suppose this is some kind of permissions issue?
_kacper
@dracconi
also, i am on windows 10 64bit
luarocks 3.1.3-win32
_kacper
@dracconi
ok so when im in C: it shows warning and access denied but in D: it works and in C: i installed a rock so welp
Hisham Muhammad
@hishamhm
@dracconi running with --verbose might help us figure out what's going on wrong. There might be a bug with dealing with different drive letters, since LuaRocks is mostly tested on Unix (where there are no drive letters) and the Windows CI runs on Appveyor where everything runs off a single drive
@dracconi please run the failing command with --verbose and paste the full output into gist.github.com then send us a link
the full output of running luarocks config may also help
(actually, you may want to open an issue for that in github.com/luarocks/luarocks/issues and just paste there! )