gh-actions-luarocks icon indicating copy to clipboard operation
gh-actions-luarocks copied to clipboard

Final env includes old version of luasocket, which is inoperable with‌ Lua 5.4.4

Open alerque opened this issue 3 years ago • 2 comments
trafficstars

I've been looking at the code trying to find what to bump, and I'm absolutely mystified.

When I install Lua with leafo/gh-actions-lua and LuaRocks with this action, I end up with an old version of LuaSocket which will not play nice with Lua 5.4.4. A new version has been released that does work, but I can't figure out where this install is even ending up with it at all!

https://github.com/leafo/gh-actions-luarocks/blob/bbcb76206198464b68964b219533403c7825492a/main.js#L55

Looking at the upstream LuaRocks ./configure I don't see where it is bootstrapping LuaSocket either. All I know is that in desperately needs bumping somewhere and if you have any idea where ... then my CI jobs will thank you.

alerque avatar Mar 25 '22 21:03 alerque

In the logs, can you see it installing the requested version of LuaSocket? Or does it skip installing LuaSocket because it sees a version already installed?

leafo avatar Mar 25 '22 21:03 leafo

This might be a cache issue! The demo I tried works, but it is copy/paste from a real project that fails (minus some irrelevant stuff). I'm still trying to make heads or tails of this...

alerque avatar Mar 25 '22 22:03 alerque