From 919f3b6d85c5b115bc73b019f46a6cd5ff73c393 Mon Sep 17 00:00:00 2001 From: Madhu Rajanna Date: Mon, 4 May 2020 15:08:02 +0530 Subject: [PATCH] Doc: update development documentation Updated golang version to 1.13.x and also updated user to set GO111MODULE=on and CGO_ENABLED=1 when doing development in cephcsi Signed-off-by: Madhu Rajanna --- docs/development-guide.md | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/docs/development-guide.md b/docs/development-guide.md index cf6eeae02..a3fd4b17b 100644 --- a/docs/development-guide.md +++ b/docs/development-guide.md @@ -13,10 +13,14 @@ it is **highly** encouraged to: ### Workspace and repository setup -* [Download](https://golang.org/dl/) Go (>=1.11.x) and +* [Download](https://golang.org/dl/) Go (>=1.13.x) and [install](https://golang.org/doc/install) it on your system. * Setup the [GOPATH](http://www.g33knotes.org/2014/07/60-second-count-down-to-go.html) environment. +* `CGO_ENABLED` is enabled by default, if `CGO_ENABLED` is set to `0` we need + to set it to `1` as we need to build with go-ceph bindings. +* `GO111MODULE` is enabled by default, if `GO111MODULE` is set to `off` we need + to set it to `on` as cephcsi uses go modules for dependency. * Ceph-CSI uses the native Ceph libaries through the [go-ceph package](https://github.com/ceph/go-ceph). It is required to install the Ceph C headers in order to compile Ceph-CSI. The packages are called