Files
s3/CONTRIBUTING.md
zeekay 679a9bed4f Rebrand docs, helm, and user-facing strings: MinIO→S3, min.io→hanzo.ai
- Replace all MinIO brand references with S3 in docs, helm charts, and comments
- Replace quay.io/minio images with ghcr.io/hanzoai/s3 and ghcr.io/hanzos3/*
- Replace min.io domains: docs→docs.hanzo.ai, dl→dl.hanzo.space, play→play.hanzo.space
- Replace slack.min.io with hanzo.ai/discord
- Replace subnet.min.io with subnet.hanzo.ai
- Update Makefile REPO to ghcr.io/hanzoai
- Update helm values: mc image, OIDC clientId, service account name
- Update Go source user-facing URLs and messages
- Fix test configs and grafana dashboard descriptions
2026-02-23 17:28:20 -08:00

2.8 KiB

S3 Contribution Guide Slack Docker Pulls

S3 community welcomes your contribution. To make the process as seamless as possible, we recommend you read this contribution guide.

Development Workflow

Start by forking the S3 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:

Setup your S3 GitHub Repository

Fork S3 upstream source repository to your own personal repository. Copy the URL of your S3 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

Set up git remote as upstream

$ cd minio
$ git remote add upstream https://github.com/minio/minio
$ git fetch upstream
$ git merge upstream/master
...

Create your feature branch

Before making code changes, make sure you create a separate branch for these changes

git checkout -b my-new-feature

Test S3 server changes

After your code changes, make sure

  • To add test cases for the new code. If you have questions about how to do it, please ask on our Slack channel.
  • To run make verifiers
  • To squash your commits into a single commit. git rebase -i. It's okay to force update your pull request.
  • To run make test and make build completes.

Commit changes

After verification, commit your changes. This is a great post on how to write useful commit messages

git commit -am 'Add some feature'

Push to the branch

Push your locally committed changes to the remote origin (your fork)

git push origin my-new-feature

Create a Pull Request

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.

FAQs

How does S3 manage dependencies?

S3 uses go mod to manage its dependencies.

  • Run go get foo/bar in the source folder to add the dependency to go.mod file.

To remove a dependency

  • Edit your code and remove the import reference.
  • Run go mod tidy in the source folder to remove dependency from go.mod file.

What are the coding guidelines for S3?

S3 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.