-
Notifications
You must be signed in to change notification settings - Fork 8
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
feat: auto set remote url based on locale #141
Conversation
Codecov ReportAttention:
Additional details and impacted files@@ Coverage Diff @@
## main #141 +/- ##
==========================================
+ Coverage 53.05% 53.09% +0.04%
==========================================
Files 33 33
Lines 2179 2183 +4
==========================================
+ Hits 1156 1159 +3
- Misses 1023 1024 +1 ☔ View full report in Codecov by Sentry. |
LGTM 我这边Nix跑test会炸掉,所以只能关着test编译,不过看上去新加的这两个测试都过了 如果热更新部分能够打印更多日志就好了,比如在debug打印当前的locale,在default打印选择的url之类的
|
虽然我不知道他在Linux设置为 |
失败的测试可能是 Nix 编译环境下不允许访问用户目录,设置成功了就行。 |
Nix编译的时候不允许访问任何外部内容(必须保证软件包的一致性),我甚至不确定测试阶段能不能访问网络,可以加个PureBuild的feature(? 等maa-cli发一个正式版就可以上nixpkgs了 |
Nix 编译的时候必须要跑测试吗?有个和文件夹相关的测试需要访问临时文件夹和用户的配置文件夹。但是如果只是编译不跑测试,那就没问题了。 |
不跑也行吧,但是要去和reviewer解释你为什么把测试关了,到时候我就把这个PR的讨论扔过去( |
哦哦,那可以把需要访问文件夹的测试标记成 ignore, 那样的话那些测试是默认不跑的。 |
我只在 macOS 测过,不知道 Windows 和 Linux 的简体中文 locale 是什么样的。理论上 zh-CN,zh-Hans 和 zh-Hans-CN 是所有简体中文可能的 locale 了。
Closes #138.