tt pack [rpm|tgz] требует наличия `init.lua` или `instances.yml`
Nobody has claimed this yet.
- Dominant language
- Go
- Stars
- 113
- Forks
- 18
- Avg merge
- 4d 11h
- Merged PRs (30d)
- 23
Description
При отсутствии в приложении файлов файлов init.luaи instances.yml tt pack возвращает ошибку
⨯ error collect applications info: there are no apps found in instance_enabled directory
В tarantool 3 файлы init.lua, instances.yml не нужны для запуска, можно написать приложение и без них. В 3ей версии вообще нет необходимых файлов для запуска, поэтому приложение может иметь произвольный вид без конкретного шаблона.
Ошибка возникает из-за проверки, что директория является приложением
https://github.com/tarantool/tt/blob/22890dd8fb2126ff7f261856b6d9078f0591677d/cli/util/util.go#L682-L696
Предлагаю убрать эту проверку и паковать все директории, что указаны в конфиге в поле instances_enabled т.к. приложению Tarantool 3 не нужны специальные файлы для запуска.
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
Start in cli/util/util.go at lines 682-696 and trace how tt pack validates application directories listed in the instances_enabled configuration. Confirm the current behavior with a Tarantool 3 application that lacks init.lua and instances.yml; done means tt pack packages every configured directory without requiring those files.
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
- 55/100