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

clang format with version check #3513

Merged
merged 26 commits into from
Aug 16, 2017

Conversation

Superjomn
Copy link
Contributor

@Superjomn Superjomn commented Aug 16, 2017

resolve #3356


if ! [[ $version == *"$VERSION"* ]]; then
echo "clang-format version check failed."
echo "a version contains '$VERSION' is needed, but get '$version'"
Copy link
Collaborator

@reyoung reyoung Aug 16, 2017

Choose a reason for hiding this comment

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

Do not quote variable with ''.

Copy link
Collaborator

Choose a reason for hiding this comment

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

My fault, it could display well.

if ! [[ $version == *"$VERSION"* ]]; then
echo "clang-format version check failed."
echo "a version contains '$VERSION' is needed, but get '$version'"
echo "you can install the right version, and make an soft-link to /usr/bin/clang-format"
Copy link
Collaborator

Choose a reason for hiding this comment

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

Not necessary in /usr/bin. Maybe in PATH is good enough.

you can install the right version and put it in '$PATH'

@reyoung
Copy link
Collaborator

reyoung commented Aug 16, 2017

It seems that this merge should be squashed.

@Superjomn Superjomn merged commit c307ee3 into PaddlePaddle:develop Aug 16, 2017
@Superjomn Superjomn deleted the clang-format-version-check branch August 16, 2017 03:31
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

Successfully merging this pull request may close these issues.

clang-format should freeze to a version in our development Docker image
2 participants