From 06182eae6efe0f7bc129afe62390051df5163da5 Mon Sep 17 00:00:00 2001 From: Madhu Rajanna Date: Mon, 9 May 2022 10:09:05 +0530 Subject: [PATCH] ci: fix commitlint problem Still seeing the issue of the commitlint as below fatal: unsafe repository ('/go/src/github.com/ceph/ceph-csi' is owned by someone else) To add an exception for this directory, call: git config --global --add safe.directory \ /go/src/github.com/ceph/ceph-csi Signed-off-by: Madhu Rajanna (cherry picked from commit df047ddaaf61d032fdc41071328b90bad44baa3f) --- scripts/Dockerfile.test | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/scripts/Dockerfile.test b/scripts/Dockerfile.test index 70cd9f1f9fd..3ea8a0bc89f 100644 --- a/scripts/Dockerfile.test +++ b/scripts/Dockerfile.test @@ -18,6 +18,7 @@ ENV \ GOPATH=${GOPATH} \ GOROOT=${GOROOT} \ GO111MODULE=on \ + CEPHCSIPATH=/go/src/github.com/ceph/ceph-csi \ PATH="${GOPATH}/bin:${GOROOT}/bin:/opt/commitlint/node_modules/.bin:${PATH}" COPY build.env / @@ -53,6 +54,7 @@ RUN source /build.env \ && npm init -y \ && npm install @commitlint/cli@"${COMMITLINT_VERSION}" \ && popd \ + && git config --global --add safe.directory ${CEPHCSIPATH} \ && true -WORKDIR /go/src/github.com/ceph/ceph-csi +WORKDIR ${CEPHCSIPATH}