-
Notifications
You must be signed in to change notification settings - Fork 129
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
Run clang_format_check in deterministic location #768
base: master
Are you sure you want to change the base?
Run clang_format_check in deterministic location #768
Conversation
7f7c70b
to
0acf08f
Compare
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.
This is not working at all. That's why the tests fail.
local err=0 | ||
local path | ||
ici_make_temp_dir path | ||
function install_clang_format_check() { |
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.
This function never gets called..
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.
Indeed, thanks for pointing this out - I made a wrong assumption about the calling order. I've now simplified it. It works by e.g. setting BEFORE_RUN_CLANG_FORMAT_CHECK="wget [my config] -O /tmp/clang_format_check/[project]/.clang-format"
along with ADDITIONAL_DEBS=wget
in this case.
To download a custom config file, use BEFORE_RUN_CLANG_FORMAT_CHECK="wget [my_config] -O /tmp/clang_format_check/[project-name]/.clang-format". You also need to set ADDITIONAL_DEBS=wget
Friendly ping - any thoughts on this? |
This is a proposal to implement #767. It enables to use the
AFTER_INSTALL_CLANG_FORMAT_CHECK
hook to download a clang-format file into/tmp/clang_format_check/$PROJECT_NAME