Closed stevedonovan closed 8 years ago
Ah, thanks for the heads up. This is one of the problem with dev rockspecs. They don't upgrade well. I wish the rockspec format has a way to specify modules through a glob in a directly instead of listing them out manually. This way my dev rockspec won't become out of date when I add new files to the project.
I updated the one on moonrocks, but you can always find the most up to date rockspec on github: https://raw.github.com/leafo/moonscript/master/moonscript-dev-1.rockspec
I am always forgetting how to do certain things with the rockspec format, and I'm actually working on a little library to make writing rockspecs easier (with globbing). It should go up on your excellent self-publishing site soon!
Ah, notice that rocks.moonscript.org is down. I hope I didn't press the Big Red Button ;)
Hmm, not your fault. A hard to reproduce bug I've been trying to track down. This is the second time this has happened. For some reason modules stop loading:
app[web.1]: 2013/03/18 18:33:10 [error] 19#0: *17 lua entry thread aborted: runtime error: /app/packages/share/lua/5.1/lapis/router.lua:3: attempt to index global 'lpeg' (a nil value)
app[web.1]: 2013/03/18 18:57:34 [error] 19#0: *32 lua entry thread aborted: runtime error: /app/web.lua:10: loop or previous error loading module 'lapis.init'
Also, what do you think about updating luarocks instead of creating a new tool? I'm sure Hisham would be glad to have more people working on it. At one point I was considering writing a patch to publish to moonrocks right from the command line. (which is nice because I can also generate a .rock file there too)
Sure, he's keen but busy with other stuff. We've been recently starting a discussion on the next revision to the rockspec format. However, rockspecs remain formal, declarative specifications. There's room for tools that write rockspecs, like premake does for makefiles.
Encountered this when test-installing the mooni rockspec on a fresh machine;
Sure enough, no such module! So I removed it and fell back to 0.2.3-1.