Skip to content

Commit

Permalink
ci: fix commitlint problem
Browse files Browse the repository at this point in the history
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 <madhupr007@gmail.com>
(cherry picked from commit df047dd)
  • Loading branch information
Madhu-1 authored and mergify[bot] committed May 10, 2022
1 parent 1799969 commit 06182ea
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion scripts/Dockerfile.test
Original file line number Diff line number Diff line change
Expand Up @@ -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 /
Expand Down Expand Up @@ -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}

0 comments on commit 06182ea

Please sign in to comment.