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

feat: path support under windows #676

Closed

Conversation

lllbbbyyy
Copy link

@lllbbbyyy lllbbbyyy commented Oct 11, 2022

What type of PR is this?

feat

Check the PR title.

  • This PR title match the format: <type>(optional scope): <description>
  • The description of this PR title is user-oriented and clear enough for others to understand.

(Optional) Translate the PR title into Chinese.

实现在windows下的路径支持

(Optional) More detailed description for this PR(en: English/zh: Chinese).

en: When using the kitex command-line tool to generate files under the Windows platform, due to the differences in path parsing between different platforms, the package name path in the file will become an incorrect backslash. This pr will deal with this problem.
zh(optional): 在windows平台下利用kitex命令行工具生成文件时,由于不同平台间的路径解析差异,文件中的包名路径会变成错误的反斜杠,本pr将对这一问题进行了处理

Which issue(s) this PR fixes:

fix #469

@codecov
Copy link

codecov bot commented Oct 21, 2022

Codecov Report

Base: 61.99% // Head: 62.08% // Increases project coverage by +0.09% 🎉

Coverage data is based on head (48f70d0) compared to base (08c2413).
Patch has no changes to coverable lines.

Additional details and impacted files
@@             Coverage Diff             @@
##           develop     #676      +/-   ##
===========================================
+ Coverage    61.99%   62.08%   +0.09%     
===========================================
  Files          212      212              
  Lines        16408    16408              
===========================================
+ Hits         10172    10187      +15     
+ Misses        5267     5251      -16     
- Partials       969      970       +1     
Impacted Files Coverage Δ
pkg/warmup/pool_helper.go 93.75% <0.00%> (-2.09%) ⬇️
pkg/remote/trans/nphttp2/grpc/controlbuf.go 83.88% <0.00%> (+0.66%) ⬆️
pkg/remote/trans/nphttp2/grpc/http2_client.go 73.02% <0.00%> (+0.94%) ⬆️
pkg/remote/trans/nphttp2/grpc/http2_server.go 71.15% <0.00%> (+1.28%) ⬆️

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

☔ View full report at Codecov.
📢 Do you have feedback about the report comment? Let us know in this issue.

@CLAassistant
Copy link

CLA assistant check
Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.
You have signed the CLA already but the status is still pending? Let us recheck it.

@@ -245,6 +245,7 @@ func (a *Arguments) checkPath() {
if a.Use != "" {
a.PackagePrefix = a.Use
}
a.PackagePrefix = strings.ReplaceAll(a.PackagePrefix, "\\", "/")
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

你这个修改是不是也不兼容 Unix 了?

@HeyJavaBean
Copy link
Member

支持 windows 的设计可能要配合 thriftgo 一起修改,现在还没开始做,我先 close 下,等这次发版之后再看下吧

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

[GLCC 赛题] 为 kitex 适配 Windows
4 participants