Skip to content

Add support for installing tl files#2

Open
FourierTransformer wants to merge 3 commits intoluarocks:masterfrom
FourierTransformer:master
Open

Add support for installing tl files#2
FourierTransformer wants to merge 3 commits intoluarocks:masterfrom
FourierTransformer:master

Conversation

@FourierTransformer
Copy link

Changes

  • added ability to install tl files alongside lua files
  • attempt to respect a developers tlconfig.lua file
  • removed assert(rockspec:type() == "rockspec") as the warning thrown indicated it was no longer needed

if gen_target == "5.2" then
gen_target = "5.1"
-- should this just be a raw require? is there a safe luarocks loader for this instead?
local tlconfig = require("tlconfig")
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not entirely sure if there's a better/safer way to handle the require. I'm not the most familiar with LuaRocks internals, but I did poke around a bit.

@FourierTransformer FourierTransformer marked this pull request as ready for review January 16, 2026 03:55
Turns out it was working for me since I already had the folder in place, but it was failing on fresh installs. This should resolve it. 
Also, after perusing the luarocks code I noticed that `make_dir` does return an error, so added that for better handling in the future.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant