Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • Nov 21 19:38
    StefanSchroeder opened #1118
  • Nov 21 11:14
    liamaharon commented #1117
  • Nov 21 10:28
    liamaharon commented #1117
  • Nov 21 07:29
    daurnimator commented #1117
  • Nov 21 06:59
    liamaharon opened #1117
  • Nov 21 05:14
    codecov-io commented #1116
  • Nov 21 04:28
    fperrad commented #1116
  • Nov 21 04:27
    fperrad synchronize #1116
  • Nov 19 18:54
    codecov-io commented #1116
  • Nov 19 18:54
    codecov-io commented #1116
  • Nov 19 18:28
    codecov-io commented #1116
  • Nov 19 17:30
    fperrad opened #1116
  • Nov 19 08:40
    Travis tarantool/luarocks (lvasiliev/gh-4629-add-chdir-to-make) still failing (43)
  • Nov 18 16:54
    Travis tarantool/luarocks (lvasiliev/gh-4629-add-chdir-to-make) failed (42)
  • Nov 18 16:42
    Travis tarantool/luarocks (lvasiliev/gh-4629-add-chdir-to-make) errored (41)
  • Nov 18 16:38
    Travis tarantool/luarocks (lvasiliev/gh-4629-add-chdir-to-make) errored (40)
  • Nov 15 23:47
    Travis luarocks/luarocks (check-lua-versions) still failing (2350)
  • Nov 15 20:49
    hishamhm edited #1114
  • Nov 15 19:28
    hishamhm synchronize #1115
  • Nov 15 19:28

    hishamhm on check-lua-versions

    Add --check-lua-versions flag … (compare)

Caleb Maclennan
@alerque
Sure, but can you be a little more specific? Do you have Lua code you want to make into a rock? Or just want some Lua project to tinker with? Or something to the luarocks project itself?
Pierre Chapuis
@catwell

Is there any advantage to publishing the scm rockspec to Lua Rocks on every pushed commit?

Not that I know.

daurnimator
@daurnimator
There is not
You should only need to change your scm rock if you add/remove files; or change the URL of your repository
*scm rockspec
Caleb Maclennan
@alerque
Or, presumably, values like the description that live in the spec. Got it, thanks @daurnimator
daurnimator
@daurnimator
alerque: yep
Caleb Maclennan
@alerque
What about a best-practice for release specs? Having the version in the filename just plays really weird with version control. I see a few projects keeping a ./rockspecs directory with one-each rockspec file for each release. Is that the best alternative?
daurnimator
@daurnimator
alerque: how does it play weird?
alerque: when I do my releases I make a "release branch"; commit the release (with updated NEWS file, renamed rockspec, version file in repository filled in); tag that commit; then merge it back into master (where rockspec is still scm one)
Caleb Maclennan
@alerque
First the vast majority of the content is duplicated over and over again in mulpiple files just to change one key (the version). Some projects rename the file on each release, but that makes it hard to track the history, and also it blocks people from installing old versions. Those that don't rename end up with a bunch of clutter, often in the root of the repo, hence why a directory just for accumulating specs seemed like the most sensible thing I've seen.
daurnimator
@daurnimator
alerque: see https://github.com/daurnimator/lua-http/network there is a release commit on feb 13
Caleb Maclennan
@alerque
daurnimator: So when you merge back from the release branch you suppress the renamed and updated rockspec from coming in with the merge?
daurnimator
@daurnimator
alerque: yep
mothilv
@Starkyv
@alerque I'm not sure. Can you please enlighten me with the difference?
And what are the prerequisites to start contributing to Lua? I'm just a beginner right now. So can someone help me out?
Caleb Maclennan
@alerque
Thanks for the merges on luacov-coveralls @moteus. Any ideas about a new Luarocks release? I'd be glad to strip out the hacks I have in place to make it work in favor of just working out of the box ;-)
Pierre Chapuis
@catwell
Caleb Maclennan
@alerque
LuaRocks could use some improvement, but is starting from scratch the way to do it? Has he tried contributing?
leaf
@leafo

The late addition of https to the rocks server was something

https was added years ago :O

what's the deal with lua-cjson and version of lua > 5.1? I'm building 5.2 with default makefile (has -DLUA_COMPAT_ALL) and I still get undefined symbol: lua_objlen
I'm guessing -DLUA_COMPAT_ALL has to be passed when building the module as well. I don't know if luarocks has something for that
leaf
@leafo
trying to run the lua-cjson test suite for all versions of lua with github actions, these tests 🤔 https://leafo.net/shotsnb/2019-09-21_17-53-07.png
leaf
@leafo
there's two separate test suites: one using some homemade lua script, another using some perl(!) thing
Hisham Muhammad
@hishamhm
@leafo yeah, that situation is messy :\ the lua-cjson module was unmantained, and the OpenResty people seemed to have the most active fork, so I handed over the root entry to them. But then I realized they've been sitting on a PR to add 5.2+ support forever ( openresty/lua-cjson#3 -- this is from 2015) in spite of me pinging them about it every now and then
I can ping them again, and if they continue to be uninterested in maintaining 5.x, should we switch the root manifest entry to your fork, or put in under github.com/luarocks ?
Hisham Muhammad
@hishamhm
@catwell this seems to be built on top of LuaRocks, and not instead of it
Matthieu Coudron
@teto
luarocks test is supposed to be called after installation right ?
Hisham Muhammad
@hishamhm
@teto it runs busted (or whatever method you use) on the current working dir, so you don't need to luarocks install first
Matthieu Coudron
@teto
perfect, I will try to have nixos run luarocks test when available
any recommendations for packages that implement luarocks test aside luarocks ? so that I can test my code
Hisham Muhammad
@hishamhm
not that I know of for now, the feature is pretty recent. But it should autodetect for packages that have a .busted config file. Right now the command fails if a test type cannot be auto-detected, so it's probably not too amenable for trying to run it on every rock...
so if you're parsing the rockspec you might want to only run it on rockspecs that have a test entry to stay on the safe side
leaf
@leafo
I actually have commit access on the openresty org, but I'll wait to see if anyone responds. If they don't I'll probably fork it over to luarocks org and release new version there
Matthieu Coudron
@teto
@hishamhm that's what I will do thanks
Dinesh Bhagat
@rapperdinesh
Hello , I am Dinesh Bhagat. I am new to Lua Language and determined to contribute in LuaRocks. Can anybody guide me on how to proceed?
Caleb Maclennan
@alerque
Does anybody know of a Lua Rock with a good data set and interface for working with ISO-639 language codes?
Caleb Maclennan
@alerque
Plus of course ISO 3166 data — I guess what I need is BCP47 (language + region) tag manipulation.
Caleb Maclennan
@alerque
@rapperdinesh If you are new to Lua you probably want to build something with Lua first and get the hang of using Rocks in a project, then you'll have a better idea how they work and eventually you'll need a rock that isn't there or an improvement to one that is. From that point it will be more obvious how to proceed. Contributing to Lua Rocks isn't an end goal in itself, particularly not a first goal when learning a language. That's like saying you want to become a wrench inventor and manufacturer before you have any mechanic's experience using wrenches.
We'll help along the way of course, but we can't just seed the end result of a process ;-) Language library ecosystems are driven by need and usage — first learn enough to have a need of something.
@Starkyv This^^^ is for you too, re your inquiry above.
Caleb Maclennan
@alerque
Trying to search for Lua Locale libraries, it really doesn't help that there is an ISO-639 code lua (for the language Luba-Lulua). Gah!
Dinesh Bhagat
@rapperdinesh
@alerque understood ! Thanks for the help.
Caleb Maclennan
@alerque
Since the answer to my query about language and locale code data in Lua above was <crickets>, I've started a new project to create such a thing: cldr-lua is to be copies of the Unicode Consoritorium's CLDR data (which includes a lot of information about locales and languages besides just a list, such as how to format numbers and currencies, how to spell out numbers, native names for languages in each other language, number groupings for plural categories, etc.) as well as a convenient way to query that data in Lua.
I'll be open to input on how that should look & work in anybody else has use(s) for such a thing.
My immediate use case is for informing locale fallbacks and localized number formatting in fluent-lua, but I'm sure there will be other uses.
Ankit Karan
@karanankit01
I'm Ankit karan currently a B.Tech, 2nd year student at Indian Institute of Technology, Mandi.I have a good background in Embedded systems and microcontroller basics. I have working knowledge and good hand in C++,python, hardware language verilog, assembly in Lua.Can anyone please suggest how to proceed further and contribute in LuaRocks?