tarantool / tarantool/tt

`tt` ignore specified config

Open
#1,035 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Go
Stars
113
Forks
18
Avg merge
4d 11h
Merged PRs (30d)
23

Description

tt does not use config file specified with --cfg option.

Steps to reproduce:

mkdir tmp && cd tmp
tt init
cp tt.yaml tt.yml
tt --cfg tt.yml

Got error:

 ⨯ Failed to configure Tarantool CLI: failed to get access to configuration file: more than one YAML files are found:
tt.yaml, tt.yml
Ambiguous selection

The problem is that tt searches for a configuration if one was explicitly specified.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Reproduce the problem from the issue using tt init, a copied tt.yml, and tt --cfg tt.yml. Start by tracing the --cfg option and configuration-file selection. Done means an explicitly supplied tt.yml is used without an ambiguity error when tt.yaml is also present.

Written by the indexing model from the issue text.

Assessment

Tech stack
go
Domain
cli
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Clearly specified
Newbie friendliness
52/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.