-
Notifications
You must be signed in to change notification settings - Fork 257
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
add reset-submodule script #122
Conversation
git submodule update --init third_party/boringssl | ||
git submodule update --init third_party/cares/cares | ||
git submodule update --init third_party/zlib | ||
cd third_party/zlib |
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.
why cd zlib here?
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.
See madler/zlib#162
#!/usr/bin/env bash | ||
git submodule update --init grpc-sys/grpc | ||
cd grpc-sys/grpc | ||
git submodule update --init third_party/boringssl |
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.
can we use git submodule update --init --recursive
directly?
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.
Then many unused submodules get initialized, which can be slow and probably fail due to network censor.
does the script have the executive mode? |
Yes. |
LGTM |
PTAL @overvenus |
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.
lgtm
So when switching branch/tag, we can cleanup workspace conveniently.