Thanks everyone for contributing to Service-Center.
This document explains the process and best practices for submitting a Pull Request to the Service-Center project. This document can be treated as a reference for all contributors and be useful to new and infrequent submitters.
Clone the repo in a proper GOPATH
git clone https://github.com/apache/servicecomb-service-center.git $GOPATH/src/github.com/apache/servicecomb-service-center
cd $GOPATH/src/github.com/apache/servicecomb-service-center
We use glide for dependency management, please follow the below steps for downloading all the dependencies required for building this project.
curl https://glide.sh/get | sh
glide install
If this is a bug or a small fix then you can directly make the changes and ensure all the steps in this documentation and raise a PR, but If it is a feature or a big design or architecture change then we recommend you to raise an issue here or discuss the same in our mailing list.
Once you are done with your changes then please follow the below checks to ensure the code quality before raising a PR.
go fmt ./...
go build -o service-center
Running UT in local env, this step assumes you have a docker running in your env.
bash -x scripts/ut_test_in_docker.sh
Once UT has passed you can run the integration test to ensure the overall functionality is not altered.
bash -x scripts/integration_test.sh
Once you are done with compiling, UT and IT then you are good to go for raising the PR, please follow these guidelines for raising the PR.
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。