[tt] misinterprets the relative path to the templates folder
Open
Nobody has claimed this yet.
- Dominant language
- Go
- Stars
- 113
- Forks
- 18
- Avg merge
- 4d 11h
- Merged PRs (30d)
- 23
Description
Steps to reproduce:
- Init tt in the folder inside your home directory (
cd /home/d/git && tt init) - Set relative path to the templates folder in the /home/d/git/tt.yaml (
~/git/repo/templates/tt) - Try to create new app with template (
tt create tdg --name tt_tdg_app) - Got error
template 'tdg' is not found
d@m1book8715:~/git$ tt cfg dump
/home/d/git/tt.yaml:
tt:
modules:
directory: /home/d/git/modules
app:
run_dir: /home/d/git/var/run
log_dir: /home/d/git/var/log
log_maxsize: 100
log_maxage: 8
log_maxbackups: 10
restart_on_failure: false
wal_dir: /home/d/git/var/lib
memtx_dir: /home/d/git/var/lib
vinyl_dir: /home/d/git/var/lib
bin_dir: /home/d/git/bin
inc_dir: /home/d/git/include
instances_enabled: /home/d/git/instances.enabled
tarantoolctl_layout: false
ee:
credential_path: ""
templates:
- path: /home/d/git/~/git/repo/templates/tt
repo:
rocks: ""
distfiles: /home/d/git/distfiles
Expected behavior:
- Relative paths works correctly
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Reproduce the issue with tt init, the relative templates path in tt.yaml, and tt create, then compare the configured path shown by tt cfg dump with the intended location. Trace the templates-path handling from configuration loading through template lookup; done means a path such as ~/git/repo/templates/tt resolves correctly and tt create finds template tdg.
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
- Mostly clear
- Newbie friendliness
- 45/100