-
Notifications
You must be signed in to change notification settings - Fork 527
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
[feature]add fmtlib(#2291) #2367
Conversation
Signed-off-by: tangruilin <[email protected]>
"Move-Item -Path support/bazel/WORKSPACE.bazel -Destination WORKSPACE.bazel", | ||
], | ||
) | ||
|
||
bind( | ||
name = "braft", | ||
actual = "@com_github_baidu_braft//:braft", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
with the code review
The code looks good. There is no obvious bug risk and the patch_cmds/patch_cmds_win are well defined. However, there are a few improvements that can be made.
First, it would be better to use variables instead of hardcoded paths in the patch_cmds and patch_cmds_win. This would make the code more flexible, as different paths could be used in different environments.
Second, the patch_cmds and patch_cmds_win should be moved to a separate file and imported into this file, rather than having all of the commands listed in the same file. This will help keep the code more organized and easier to maintain.
Finally, some comments should be added to the code to explain what each line does and why it is necessary. This will help future developers understand the code more easily.
/recheck |
recheck |
@wuhongsong please look it. Thanks |
are there someone review this PR |
Can you use BTW. give a example to how to print a |
@@ -37,6 +37,25 @@ git_repository( | |||
commit = "d12de388c97998f5ccd5cb97ed0da728815ef438", | |||
) | |||
|
|||
git_repository( | |||
name = "fmt", | |||
branch = "master", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Use a stable version? For example tag: 9.1.0.
agree! You can modify an old code as an example, or modify some unit tests. |
cicheck |
1 similar comment
cicheck |
ok, i will do it these day |
@Tangruilin Will you continue to follow up this PR? |
@Tangruilin Will you continue to follow up this PR? |
cicheck |
cicheck |
name = "fmt", | ||
branch = "master", | ||
remote = "https://github.com/fmtlib/fmt", | ||
commit = "bce8d4ed087a0560492426f9f5be2713804daded" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
miss ,
continue in 2635 |
What problem does this PR solve?
Issue Number: #2291
Problem Summary:
What is changed and how it works?
What's Changed:
add libfmt fot glog
How it Works:
now we can use
fmt::print("{}", 4)
to format log. Details can look issue#2291Side effects(Breaking backward compatibility? Performance regression?):
Check List