#1003 luarocks module reorganization breaks prosodyctl about

Reporter Zash
Owner Nobody
Created
Updated
Stars ★ (1)  
Tags
  • Difficulty-VeryEasy
  • Priority-Medium
  • Type-Defect
  • Status-Accepted
  1. Zash on

    What steps will reproduce the problem? 1. Install luarocks from source 2. Run prosodyctl about What is the expected output? LuaRocks: Installed (scm) What do you see instead? lua: ./prosodyctl:596: attempt to index field 'luarocks.cfg' (a nil value) stack traceback: ./prosodyctl:596: in function '?' ./prosodyctl:1523: in main chunk [C]: in ? Please provide any additional information below. This was introduced in luarocks commit f2beb5ee1fd2c54d59a43f4f2a8fe0f7a1701daa according to bisect. Using require instead of indexing package.loaded to reach luarocks.cfg appears to work.

  2. Zash on

    Changes
    • tags Difficulty-VeryEasy

New comment