Having trouble packaging plugin with a luarocks dependency #1922
Unanswered
aketchum15
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hello,
I am currently working on a plugin that has to parse large xml files. Originally I was using a lua only library (xml2lua) and just dumping the source into the plugin folder. As I have made significant progress on the logic and functionality of the plugin I would now like to more cleanly express the dependency, and perhaps switch to a compiled library for quicker parsing. I am having trouble understanding how to express a luarocks dependency in the plugin. According to the Packages page on the wiki if a plugin contains a .rockspec file, lazy should automatically build it, but that does not seem to be the case for me. Adding a rockspec file does not trigger lazy to build anything. I have also tried adding the option "build = 'rockspec'" to my plugin's table but I am fairly certain that is for if the plugin itself has a rockspec file. This option causes lazy to present an error:
I have attached below how I am listing my plugin for lazy and the directory structure, as it currently is, for my plugin.
Beta Was this translation helpful? Give feedback.
All reactions