Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Window平台下main.go的viper.ReadInConfig()函数存在兼容问题 #4

Closed
Tomassky opened this issue Aug 7, 2021 · 1 comment
Closed

Comments

@Tomassky
Copy link

Tomassky commented Aug 7, 2021

viper.ReadInConfig()这个函数会一直判断当前目录下是否有存在config文件,不存在则会进入生成根目录下的config文件,导致第一次执行没问题,第二次执行的时候因为存在.red-tldr文件夹,进而第二次mkdir会报错

@Rvn0xsy
Copy link
Owner

Rvn0xsy commented Aug 7, 2021

在版本v0.4中已经修复此问题,兼容Windows平台,欢迎进行测试反馈,期待回复。

@Rvn0xsy Rvn0xsy closed this as completed Aug 9, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants