223 lines
7.0 KiB
HTML
223 lines
7.0 KiB
HTML
<!DOCTYPE html>
|
|
<!--[if IE 8]><html class="no-js lt-ie9" lang="en" > <![endif]-->
|
|
<!--[if gt IE 8]><!--> <html class="no-js" lang="en" > <!--<![endif]-->
|
|
<head>
|
|
<meta charset="utf-8">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
|
|
<title>Contributing - Minio Client Documentation</title>
|
|
|
|
|
|
|
|
<link href='https://fonts.googleapis.com/css?family=Lato:400,700|Roboto+Slab:400,700|Inconsolata:400,700' rel='stylesheet' type='text/css'>
|
|
|
|
<link rel="stylesheet" href="../css/theme.css" type="text/css" />
|
|
<link rel="stylesheet" href="../css/theme_extra.css" type="text/css" />
|
|
<link rel="stylesheet" href="../css/highlight.css">
|
|
|
|
<script src="//cdnjs.cloudflare.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script>
|
|
<script src="//cdnjs.cloudflare.com/ajax/libs/modernizr/2.8.3/modernizr.min.js"></script>
|
|
<script type="text/javascript" src="../js/highlight.pack.js"></script>
|
|
<script src="../js/theme.js"></script>
|
|
<script src="../sdks/js/example-bucket-policy.js"></script>
|
|
<script src="../sdks/js/example-list.js"></script>
|
|
|
|
<style>
|
|
body {font-size: 90%;}
|
|
pre, code {font-size: 100%;}
|
|
h3, h4, h5, h6 {color: #2980b9; font-weight: 300}
|
|
</style>
|
|
</head>
|
|
|
|
<body class="wy-body-for-nav" role="document">
|
|
|
|
<div class="wy-grid-for-nav">
|
|
|
|
|
|
<nav data-toggle="wy-nav-shift" class="wy-nav-side stickynav">
|
|
<div class="wy-side-nav-search">
|
|
<a href=".." class="icon icon-home"> Minio Client Documentation</a>
|
|
|
|
</div>
|
|
|
|
<div class="wy-menu wy-menu-vertical" data-spy="affix" role="navigation" aria-label="main navigation">
|
|
<ul class="current">
|
|
|
|
|
|
<span>Commands</span>
|
|
|
|
<li class="toctree-l1 ">
|
|
<a class="" href="../commands/config">config</a>
|
|
|
|
</li>
|
|
|
|
<li class="toctree-l1 ">
|
|
<a class="" href="../commands/ls">ls</a>
|
|
|
|
</li>
|
|
|
|
<li class="toctree-l1 ">
|
|
<a class="" href="../commands/cp">cp</a>
|
|
|
|
</li>
|
|
|
|
<li class="toctree-l1 ">
|
|
<a class="" href="../commands/mb">mb</a>
|
|
|
|
</li>
|
|
|
|
|
|
|
|
|
|
|
|
<span>SDKs</span>
|
|
|
|
<li class="toctree-l1 ">
|
|
<a class="" href="../sdks/js/javascript">Js</a>
|
|
|
|
</li>
|
|
|
|
<li class="toctree-l1 ">
|
|
<a class="" href="../sdks/python/python">Python</a>
|
|
|
|
</li>
|
|
|
|
<li class="toctree-l1 ">
|
|
<a class="" href="../sdks/ruby/ruby">Ruby</a>
|
|
|
|
</li>
|
|
|
|
|
|
|
|
|
|
|
|
<li class="toctree-l1 current">
|
|
<a class="current" href=".">Contributing</a>
|
|
</li>
|
|
|
|
|
|
|
|
|
|
<li class="toctree-l1 ">
|
|
<a class="" href="../debugging">Debugging</a>
|
|
</li>
|
|
|
|
|
|
|
|
</ul>
|
|
|
|
</div>
|
|
|
|
</nav>
|
|
|
|
<section data-toggle="wy-nav-shift" class="wy-nav-content-wrap">
|
|
|
|
|
|
<nav class="wy-nav-top" role="navigation" aria-label="top navigation">
|
|
<i data-toggle="wy-nav-top" class="icon icon-reorder"></i>
|
|
<a href=".."></a>
|
|
</nav>
|
|
|
|
|
|
<div class="wy-nav-content">
|
|
<div class="rst-content">
|
|
<div role="navigation" aria-label="breadcrumbs navigation">
|
|
<ul class="wy-breadcrumbs">
|
|
<li><a href="..">Docs</a> »</li>
|
|
<li>Contributing</li>
|
|
<li class="wy-breadcrumbs-aside">
|
|
|
|
</li>
|
|
</ul>
|
|
<hr/>
|
|
</div>
|
|
<div role="main">
|
|
<div class="section">
|
|
<h3 id="setup-your-mc-github-repository">Setup your mc Github Repository</h3>
|
|
<p>Fork <a href="https://github.com/minio-io/mc/fork">mc upstream</a> source repository to your own personal repository.</p>
|
|
<pre><code class="sh">$ git clone https://github.com/$USER_ID/mc
|
|
$ cd mc
|
|
$ make
|
|
$ mc --help
|
|
</code></pre>
|
|
|
|
<h3 id="developer-guidelines">Developer Guidelines</h3>
|
|
<p><code>mc</code> welcomes your contribution. To make the process as seamless as possible, we ask for the following:</p>
|
|
<ul>
|
|
<li>
|
|
<p>Go ahead and fork the project and make your changes. We encourage pull requests to discuss code changes.</p>
|
|
<ul>
|
|
<li>Fork it</li>
|
|
<li>Create your feature branch (git checkout -b my-new-feature)</li>
|
|
<li>Commit your changes (git commit -am 'Add some feature')</li>
|
|
<li>Push to the branch (git push origin my-new-feature)</li>
|
|
<li>Create new Pull Request</li>
|
|
</ul>
|
|
</li>
|
|
<li>
|
|
<p>If you have additional dependencies for <code>mc</code>, <code>mc</code> manages its depedencies using <a href="https://github.com/tools/godep">godep</a></p>
|
|
<ul>
|
|
<li>Run <code>go get foo/bar</code></li>
|
|
<li>Edit your code to import foo/bar</li>
|
|
<li>Run <code>make save</code> from top-level directory (or <code>godep restore && godep save ./...</code>).</li>
|
|
</ul>
|
|
</li>
|
|
<li>
|
|
<p>When you're ready to create a pull request, be sure to:</p>
|
|
<ul>
|
|
<li>Have test cases for the new code. If you have questions about how to do it, please ask in your pull request.</li>
|
|
<li>Run <code>go fmt</code></li>
|
|
<li>Squash your commits into a single commit. <code>git rebase -i</code>. It's okay to force update your pull request.</li>
|
|
<li>Make sure <code>go test -race ./...</code> and <code>go build</code> completes.</li>
|
|
</ul>
|
|
</li>
|
|
<li>
|
|
<p>Read <a href="https://github.com/golang/go/wiki/CodeReviewComments">Effective Go</a> article from Golang project</p>
|
|
<ul>
|
|
<li><code>mc</code> project is strictly conformant with Golang style</li>
|
|
<li>if you happen to observe offending code, please feel free to send a pull request</li>
|
|
</ul>
|
|
</li>
|
|
</ul>
|
|
|
|
</div>
|
|
</div>
|
|
<footer>
|
|
|
|
<div class="rst-footer-buttons" role="navigation" aria-label="footer navigation">
|
|
|
|
<a href="../debugging" class="btn btn-neutral float-right" title="Debugging"/>Next <span class="icon icon-circle-arrow-right"></span></a>
|
|
|
|
|
|
<a href="../sdks/ruby/ruby" class="btn btn-neutral" title="Ruby"><span class="icon icon-circle-arrow-left"></span> Previous</a>
|
|
|
|
</div>
|
|
|
|
|
|
<hr/>
|
|
|
|
<div role="contentinfo">
|
|
<p>
|
|
<!-- Copyright etc -->
|
|
</p>
|
|
</div>
|
|
|
|
Built with <a href="http://www.mkdocs.org">MkDocs</a> using a <a href="https://github.com/snide/sphinx_rtd_theme">theme</a> provided by <a href="https://readthedocs.org">Read the Docs</a>.
|
|
</footer>
|
|
|
|
</div>
|
|
</div>
|
|
|
|
</section>
|
|
|
|
</div>
|
|
|
|
<div class="rst-versions" role="note" style="cursor: pointer">
|
|
<span class="rst-current-version" data-toggle="rst-current-version">
|
|
|
|
<span><a href="../sdks/ruby/ruby" style="color: #fcfcfc;">« Previous</a></span>
|
|
<span style="margin-left: 15px"><a href="../debugging" style="color: #fcfcfc">Next »</a></span>
|
|
</span>
|
|
</div>
|
|
</body>
|
|
</html> |