koishijs / koishi

Cross-platform chatbot framework made with love
https://koishi.chat
MIT License
4.37k stars 237 forks source link

Bug: CLI cannot start of koishi.yml is read only. #986

Closed purerosefallen closed 1 year ago

purerosefallen commented 1 year ago

Describe the bug

If koishi.yml is readonly, like, volumed in ro type, or in a readonly-mounted filesystem, it can't start.

Steps to reproduce

docker run -it --rm -v ./koishi.yml:/koishi/koishi.yml koishijs/koishi:latest

Expected behavior

It should start well with a readonly config file.

Screenshots

Looks like it parsed this yaml file as a js file.

Versions

Additional context

No response

purerosefallen commented 1 year ago

Screenshot_20230223_174218 Not a proper screenshot, but can be reproduced

shigma commented 1 year ago

额,这是把你的配置文件当成 ts 来读了吧,跟 readonly 有啥关系?

已定位问题,会尽快修复。