jirutka / luapak

Easily build a standalone executable for any Lua program
MIT License
200 stars 7 forks source link

Luapak dependency analysis feedback #2

Open Alloyed opened 6 years ago

Alloyed commented 6 years ago

Sorry about the issue spam but as you can probably tell I'm working through using luapak in a practical way and I figure too much feedback is better than no feedback.

I do appreciate that luapak will try to statically analyze the modules my project requires, but because my package is nontrivial and includes dependencies that themselves have dependencies it's hard to tell where missing dependencies are used and why.

For example, here is the output from using luapak on lua-lsp:

luapak: Resolving dependencies...
luapak: warn: The following modules are required, but not found:
luapak: warn:    debug
luapak: warn:    lpeg
luapak: warn:    lua-lsp.formatting
luapak: warn:    luacheck
spc476 commented 6 years ago

Some more feedback. I'm running this over a project I've written, and a list of missing modules popped up, including

(Yes, I do local math = require "math" in my code as a form of documentation and intent). It would be nice if I could tell luapak to assume standard modules, or it did that by default.