Tarantool development patches archive
 help / color / mirror / Atom feed
From: Yaroslav Dynnikov <yaroslav.dynnikov@tarantool.org>
To: lvasiliev <lvasiliev@tarantool.org>
Cc: Yaroslav Dynnikov <yaroslav.dynnikov@tarantool.org>,
	tarantool-patches@dev.tarantool.org,
	Vladislav Shpilevoy <v.shpilevoy@tarantool.org>
Subject: Re: [Tarantool-patches] [PATCH v3 0/2] Adapt luarocks for tarantoolctl
Date: Sun, 12 Apr 2020 21:30:44 +0300	[thread overview]
Message-ID: <CAK0MaD1dPvgwz8mwO=QcbxnWg79GscTehb_f5_ujVrvA9eef2w@mail.gmail.com> (raw)
In-Reply-To: <fdb4d477-7db2-b30a-7152-d18583cb8628@tarantool.org>

[-- Attachment #1: Type: text/plain, Size: 3351 bytes --]

Hi, guys.

Recently we talked to Leonid in chat and discussed the necessity of
removing flags. I've offered Leonid to check behavior, so here is what
I've found.

My point of view (now and then) is that they're neither useful nor
harmful. Earlier I did agree to blacklist them, but looking at Leonids
patch set this week I've changed my mind as the second commit seems
just worthless to me.

Inline help says:

```
--lua-dir=<prefix>     Which Lua installation to use.
--lua-version=<ver>    Which Lua version to use.
--global               Use the system tree when `local_by_default` is
`true`.
--local                Use the tree in the user's home directory.
                       To enable it, see
'/opt/tarantool-install/bin/tarantoolctl help path'.

Rocks trees in use:
        /tmp/tmp.JY1fgy8La9/.rocks ("user")
        /opt/tarantool-install ("system")
```

* Tarantool does define `LOCAL_BY_DEFAULT = true`,
  (i.e. `--local` is our default behavior)

* "System tree" is the place where tarantool is installed
  (`-DCMAKE_INSTALL_PREFIX`).

* "Home directory" in tarantool is overriden with `./.rocks`.

* See "rocks: update luarocks to 3.1.1" 4222c1f6
<https://github.com/tarantool/tarantool/commit/4222c1f6451973f446f9c8be28c7012435416fa3>
.

* Both `--local` and `--global` are only shortcuts for predefined
  `--tree=<tree>`, which isn't going to be removed.

* Speaking of `--lua-dir` and `--lua-version`, they look to be neither
  useful nor harmful.

Please, notice that command-line help refers to `tarantoolctl help
path`, but

1. It should be `tarantoolctl rocks help` (I guess there are many of
   such places)
2. `rocks path` command is disabled in your patch.

I'm a lazy developer and I don't like unnecessary restrictions. If I
were you, I'd drop the second commit ("Delete flags which can't be used
with tarantoolctl rocks" 1b51b2f) and enable back `rocks path` command.
Let people decide whether they need it or not.

Finally, a few words about documentation. I've tried to write down all
supported commands and flags, and I found it's really difficult and
verbose. I'm withdrawing my suggestion to clarify it, I don't know what
to do. Perhaps, documentation should just refer to inline help, as it's the
only up-to-date information, and still correct enough.



On Sun, 12 Apr 2020 at 20:25, lvasiliev <lvasiliev@tarantool.org> wrote:

>
>
> On 11.04.2020 17:23, Vladislav Shpilevoy wrote:
>
> >> As of the second one ("Delete flags which can't be used with
> >> tarantoolctl rocks" 1b51b2f <
> https://github.com/tarantool/luarocks/commit/1b51b2fe1c194719a7a8a74220a954a91c21f2a7>),
> I'm worried that our fork every day goes
> >> farther from upstream. You didn't say a word about necessity to /remove/
> >> it, but it looks like another postponed problem.
> >
> > Leonid, btw, why do we remove them, again? I was always thinking it
> > is a part of the ticket, but I don't see it there except in your
> > comments.
> Because after talking with Yaroslav, we decided that the user should not
> be able to use these flags.
> When I worked on task, I was still too young and did not know that all
> summaries of discussions should be written down in comments on task.
>


-- 
С уважением.
Дынников Ярослав.

[-- Attachment #2: Type: text/html, Size: 4413 bytes --]

  reply	other threads:[~2020-04-12 18:30 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-04-09  6:33 Leonid Vasiliev
2020-04-09  6:33 ` [Tarantool-patches] [PATCH v3 1/2] Add the chdir option for make Leonid Vasiliev
2020-04-09  6:33 ` [Tarantool-patches] [PATCH v3 2/2] Delete flags which can't be used with tarantoolctl rocks Leonid Vasiliev
2020-04-13 11:59   ` lvasiliev
2020-04-13 12:16     ` Yaroslav Dynnikov
2020-04-10  0:00 ` [Tarantool-patches] [PATCH v3 0/2] Adapt luarocks for tarantoolctl Vladislav Shpilevoy
2020-04-10  8:41   ` lvasiliev
2020-04-10 17:02   ` Yaroslav Dynnikov
2020-04-10 18:37     ` lvasiliev
2020-04-11 14:23     ` Vladislav Shpilevoy
2020-04-12 17:25       ` lvasiliev
2020-04-12 18:30         ` Yaroslav Dynnikov [this message]
2020-04-12 19:52           ` Vladislav Shpilevoy
2020-04-13  7:44           ` lvasiliev
2020-04-13 11:07 ` lvasiliev

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='CAK0MaD1dPvgwz8mwO=QcbxnWg79GscTehb_f5_ujVrvA9eef2w@mail.gmail.com' \
    --to=yaroslav.dynnikov@tarantool.org \
    --cc=lvasiliev@tarantool.org \
    --cc=tarantool-patches@dev.tarantool.org \
    --cc=v.shpilevoy@tarantool.org \
    --subject='Re: [Tarantool-patches] [PATCH v3 0/2] Adapt luarocks for tarantoolctl' \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox