That is correct, however I am talking about source-only rocks. Actually I am simply seeking confirmation whether setting my described behavior is a bug or intended behavior. See again:
Now I am changing lua’s search path so that I can easily include the module:
package.path = ‘lua_modules/share/lua/5.1/?.lua’ … package.path
However, after requiring the module:
local log = require(‘coronalog’)
Corona Simulator gives me the following error:
ERROR: Runtime error
module ‘coronalog’ not found:
no field package.preload[‘coronalog’]
no file ‘lua_modules/share/lua/5.1/coronalog.lua’
…
In the stack trace you can see that the search path was modified correctly and Corona’s lua interpreter is actually trying to load from the correct path, but is still unable to load.
Again, lua_modules/share/lua/5.1/coronalog.lua is the correct path relative to my Corona project folder. lua_modules is a sub-folder in there, it is no system directory!
So, is this a bug or a feature request?