Skip to content

Commit 8a2317e

Browse files
committed
update git on centos7, really old version by default that messes go mod download
Signed-off-by: Guillaume Tardif <[email protected]>
1 parent 5ef7132 commit 8a2317e

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

rpm/SPECS/docker-ce-cli.spec

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,14 @@ pushd /go/src/github.com/docker/cli
5050
DISABLE_WARN_OUTSIDE_CONTAINER=1 make VERSION=%{_origversion} GITCOMMIT=%{_gitcommit_cli} dynbinary manpages # cli
5151
popd
5252

53+
git version
54+
# Updating git on centos7 (default version is 1.8) to workaround issue downloading go dependencies, see https://github.com/golang/go/issues/38373
55+
if [ "$SUITE" == "7" ]; then
56+
yum install -y http://opensource.wandisco.com/centos/7/git/x86_64/wandisco-git-release-7-2.noarch.rpm
57+
yum install -y git
58+
fi
59+
git version
60+
5361
# Build all associated plugins
5462
pushd ${RPM_BUILD_DIR}/src/plugins
5563
for installer in *.installer; do

0 commit comments

Comments
 (0)