I wasn't unable to pin it down yet, but I might have fixed it indirectly. Please try this: https://luarocks.github.io/luarocks/releases/luarocks-3.0.0beta2.tar.gz (Yes, this is a very low-key announcement of another beta package :) )
-- Hisham