tarantool / tt

Command-line utility to manage Tarantool applications
Other
101 stars 12 forks source link

tt rocks (in 2.5.2) now fails to find local config-5.1.lua stored in .rocks/ directory #1003

Closed ochaton closed 1 week ago

ochaton commented 2 weeks ago

Subj

$ tt version
Tarantool CLI version 2.5.2, linux/amd64. commit: 5468a74
$ tt rocks --version
tt rocks 3.10.0
LuaRocks package manager

$ tt rocks | tail -20

Variables:
   Variables from the "variables" table of the configuration file can be
   overridden with VAR=VALUE assignments.

Configuration:
   Lua:
      Version    : 5.1
      LUA        : /opt/tarantool/bin/tarantool (ok)
      LUA_INCDIR : /opt/tarantool/include/include/tarantool (ok)
      LUA_LIBDIR : (ok)

   Configuration files:
      System  : disabled in this LuaRocks installation.
      User    : disabled in this LuaRocks installation.

   Rocks trees in use:
      /home/ubuntu/temp/deque/.rocks ("user")
      /opt/tarantool/include ("system")
$ tt version
Tarantool CLI version 2.5.0, linux/amd64. commit: 4529899
$ tt rocks --version
tt rocks 3.9.2
LuaRocks package manager

ubuntu@private:~/temp/deque$ tt rocks | tail -20
   Variables from the "variables" table of the configuration file can be
   overridden with VAR=VALUE assignments.

Configuration:
   Lua:
      Version    : 5.1
      Interpreter: /usr/bin/tarantool (ok)
      LUA_DIR    : /usr (ok)
      LUA_BINDIR : /usr/bin (ok)
      LUA_INCDIR : /usr/include/tarantool (ok)
      LUA_LIBDIR :  (ok)

   Configuration files:
      System  : /etc/luarocks/config-5.1.lua (not found)
      User    : /home/ubuntu/temp/deque/.rocks/config-5.1.lua (ok)

   Rocks trees in use:
      /home/ubuntu/temp/deque/.rocks ("user")
      /usr ("system")

WTF is:

   Configuration files:
      System  : disabled in this LuaRocks installation.
      User    : disabled in this LuaRocks installation.
oleg-jukovec commented 2 weeks ago

This is done to prevent system settings to overwrite the tt environment, see #919.

ochaton commented 2 weeks ago

good, but now it is not possible to configure custom rock_servers. So the previously working feature and basic usage of luarocks in tt now broken. We must rework patch in #919

oleg-jukovec commented 2 weeks ago

good, but now it is not possible to configure custom rock_servers. So the previously working feature and basic usage of luarocks in tt now broken. We must rework patch in #919

Why not to use TT_CLI_REPO_ROCKS or tt rocks --server for that purpose?

When system files overwrite the tt environment it looks strange and confusing.