Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
leaf
@leafo
they generated a new url because I changed the title of the action to mention luajit
that's annoying (especially since they don't create redirects)
well, in any case the name used in the workflow won't change
Caleb Maclennan
@alerque
@leafo Thanks again, I just started a new project fluent-lua and it was nice to get going quickly and cleanly with actions.
I'm looking into how to post to Lua Rocks now though, and it looks like even in your lua-twitter project example you are posting the same spec twice for every run, no? Shouldn't that bit be a separate job (depending on the first) so it doesn't repost the spec for every iteration of the matrix?
leaf
@leafo
@alerque yeah, dont use my publish example exactly in lua twitter, it's double deploying. You'll want to probably set something up that does it on pushing a tag
that was just me messing around. I think the only thing missing for deploy from tag is generating a rockspec with the correct version in the name and file
Caleb Maclennan
@alerque
Is there any advantage to publishing the scm rockspec to Lua Rocks on every pushed commit?
mothilv
@Starkyv
Can someone give me a lead on where to start contributing?
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?