From: Kefu Chai Date: Fri, 27 Aug 2021 16:14:55 +0000 (+0800) Subject: cmake: use ceph repo with tag X-Git-Tag: v17.1.0~996^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=refs%2Fpull%2F42955%2Fhead;p=ceph.git cmake: use ceph repo with tag to address following warning: fatal: reference is not a tree: 7f02f21f53ccd5e2448086f8e9015489693dd2dc CMake Error at /home/jenkins-build/build/workspace/ceph-pull-requests/build/fio_ext-prefix/tmp/fio_ext-gitclone.cmake:40 (message): Failed to checkout tag: '7f02f21f53ccd5e2448086f8e9015489693dd2dc' it seems that the shallow option does not work with a sha1 tag option, let's continue using the ceph repo with a tag. Signed-off-by: Kefu Chai --- diff --git a/cmake/modules/BuildFIO.cmake b/cmake/modules/BuildFIO.cmake index 4b07e6816cd5..481f3edf09d2 100644 --- a/cmake/modules/BuildFIO.cmake +++ b/cmake/modules/BuildFIO.cmake @@ -13,10 +13,10 @@ function(build_fio) file(MAKE_DIRECTORY ${source_dir}) ExternalProject_Add(fio_ext UPDATE_COMMAND "" # this disables rebuild on each run - GIT_REPOSITORY "https://github.com/axboe/fio.git" + GIT_REPOSITORY "https://github.com/ceph/fio.git" GIT_CONFIG advice.detachedHead=false GIT_SHALLOW 1 - GIT_TAG "7f02f21f53ccd5e2448086f8e9015489693dd2dc" + GIT_TAG "fio-3.27-cxx" SOURCE_DIR ${source_dir} BUILD_IN_SOURCE 1 CONFIGURE_COMMAND /configure