Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • Dec 08 07:17
    codecov-io commented #958
  • Dec 06 18:03
    willfrey closed #723
  • Dec 04 09:55
    amyspark commented #885
  • Dec 03 07:35
    netyoda commented #1120
  • Dec 02 22:48
    codecov-io commented #1121
  • Dec 02 22:45
    codecov-io commented #1121
  • Dec 02 22:45
    Coverage (#1121) +1.42%
  • Dec 02 22:45
    Travis luarocks/luarocks (win32-fix-absolute-path) passed (2379)
  • Dec 02 22:06
    hishamhm commented #1107
  • Dec 02 21:38
    Travis luarocks/luarocks (win32-fix-absolute-path) failed (2379)
  • Dec 02 20:34
    hishamhm opened #1121
  • Dec 02 20:25
    Travis luarocks/luarocks (win32-fix-absolute-path) errored (2378)
  • Dec 02 20:25

    hishamhm on win32-fix-absolute-path

    win32: fix split root for quote… (compare)

  • Dec 02 20:23
    Travis luarocks/luarocks (win32-fix-absolute-path) canceled (2377)
  • Dec 02 20:22

    hishamhm on win32-fix-absolute-path

    .travis.yml: do not trigger smo… win32: fix split root for quote… (compare)

  • Dec 02 20:21

    hishamhm on win32-fix-absolute-path

    .travis.yml: do not trigger smo… win32: fix split root for quote… (compare)

  • Dec 02 20:17
    Travis luarocks/luarocks (win32-fix-absolute-path) still failing (2376)
  • Dec 02 20:16
    Travis luarocks/luarocks (win32-fix-absolute-path) still failing (2375)
  • Dec 02 20:15

    hishamhm on win32-fix-absolute-path

    fix: don't trigger smoke tests … (compare)

  • Dec 02 20:14

    hishamhm on win32-fix-absolute-path

    win32: fix split root for quote… (compare)

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?
feyjobs
@feyjobs
Hello I’m new to luarock ,I’m wondering where is the Lua file downloaded. I can only find a rockspec file with dependency infomation
Thijs Schreijer
@Tieske
which file? any links?
@feyjobs ^^^
feyjobs
@feyjobs
I mean where can I find the Lua file luarock downloaded
Thijs Schreijer
@Tieske
@feyjobs check the command-line help, there is a command that shows info on a rock. That will display the file paths.
If you just type luarocks then you'll get at the bottom of the output the file paths to the rock trees. You can also browse those.
feyjobs
@feyjobs
I checked command-line help, and it show it downloaded in /usr/local, then I found the lua code in /user/local/share. Does it download the source code there by default? I mean $prefix/share ?