MinIO
community welcomes your contribution. To make the process as seamless as possible, we recommend you read this contribution guide.
Start by forking the MinIO GitHub repository, make changes in a branch and then send a pull request. We encourage pull requests to discuss code changes. Here are the steps in details:
Fork MinIO upstream source repository to your own personal repository. Copy the URL of your MinIO fork (you will need it for the git clone
command below).
git clone https://github.com/minio/minio
cd minio
go install -v
ls $(go env GOPATH)/bin/minio
upstream
$ cd minio
$ git remote add upstream https://github.com/minio/minio
$ git fetch upstream
$ git merge upstream/master
...
Before making code changes, make sure you create a separate branch for these changes
git checkout -b my-new-feature
After your code changes, make sure
make verifiers
git rebase -i
. It's okay to force update your pull request.make test
and make build
completes.After verification, commit your changes. This is a great post on how to write useful commit messages
git commit -am 'Add some feature'
Push your locally committed changes to the remote origin (your fork)
git push origin my-new-feature
Pull requests can be created via GitHub. Refer to this document for detailed steps on how to create a pull request. After a Pull Request gets peer reviewed and approved, it will be merged.
MinIO
manage dependencies?MinIO
uses go mod
to manage its dependencies.
go get foo/bar
in the source folder to add the dependency to go.mod
file.To remove a dependency
go mod tidy
in the source folder to remove dependency from go.mod
file.MinIO
is fully conformant with Golang style. Refer: Effective Go article from Golang project. If you observe offending code, please feel free to send a pull request or ping us on Slack.
Вы можете оставить комментарий после Вход в систему
Неприемлемый контент может быть отображен здесь и не будет показан на странице. Вы можете проверить и изменить его с помощью соответствующей функции редактирования.
Если вы подтверждаете, что содержание не содержит непристойной лексики/перенаправления на рекламу/насилия/вульгарной порнографии/нарушений/пиратства/ложного/незначительного или незаконного контента, связанного с национальными законами и предписаниями, вы можете нажать «Отправить» для подачи апелляции, и мы обработаем ее как можно скорее.
Опубликовать ( 0 )