From a3e6f8e3f99047b1a63f19ffed10d39c9af1fe74 Mon Sep 17 00:00:00 2001 From: Redouane Kachach Date: Mon, 6 Feb 2023 13:17:07 +0100 Subject: [PATCH] docs: fixing build instructions Adding instructions to fetch the tags as they are used during the build process. The current instructions only require the user to clone the project which results in build errors later on. Closes: https://github.com/rook/rook/issues/11619 Signed-off-by: Redouane Kachach (cherry picked from commit bf15617b7ffb7b4e84faf3021a7ee901a2e5e01f) --- .../Contributing/development-flow.md | 36 ++++++++++--------- 1 file changed, 19 insertions(+), 17 deletions(-) diff --git a/Documentation/Contributing/development-flow.md b/Documentation/Contributing/development-flow.md index c27f95230..b7d61ac0b 100644 --- a/Documentation/Contributing/development-flow.md +++ b/Documentation/Contributing/development-flow.md @@ -29,15 +29,31 @@ mkdir -p $GOPATH/src/github.com/rook cd $GOPATH/src/github.com/rook # Clone your fork, where is your GitHub account name -$ git clone https://github.com//rook.git -cd rook +git clone https://github.com//rook.git ``` +### Add Upstream Remote + +First you will need to add the upstream remote to your local git: + +```console +# Add 'upstream' to the list of remotes +cd rook +git remote add upstream https://github.com/rook/rook.git + +# Verify the remote was added +git remote -v +``` + +Now you should have at least `origin` and `upstream` remotes. You can also add other remotes to collaborate with other contributors. + ### Build -Building Rook Ceph is simple. +Before building the project you have to fetch the upstream to synchronize tags. ```console +# Fetch all from 'upstream' +git fetch -a make build ``` @@ -65,20 +81,6 @@ A set of recommended settings when working on Rook, can be found [here](https:// !!! tip VS Code should automatically use these settings through the `.vscode/settings.json` file. -### Add Upstream Remote - -First you will need to add the upstream remote to your local git: - -```console -# Add 'upstream' to the list of remotes -git remote add upstream https://github.com/rook/rook.git - -# Verify the remote was added -git remote -v -``` - -Now you should have at least `origin` and `upstream` remotes. You can also add other remotes to collaborate with other contributors. - ### Self assign Issue You can self-assign any issue that is open and not assigned to anyone in Rook upstream repo, by adding