Skip to content

Failed to checkout tag:XXXX, when set GIT_TAG and GIT_SHALLOW #678

@shishirong

Description

@shishirong
CPMAddPackage(
  NAME     lv_port_linux
  GIT_REPOSITORY https://github.com/lvgl/lv_port_linux.git
  GIT_TAG e115663ba098439f16bac63885d511c89694e21f
  GIT_SUBMODULES_RECURSE FALSE
  GIT_SHALLOW ON
  DOWNLOAD_ONLY YES
)
[ 22%] Performing download step (git clone) for 'lv_port_linux-populate'
Cloning into 'ff88'...
fatal: reference is not a tree: e115663ba098439f16bac63885d511c89694e21f
CMake Error at /root/outfire/deps/lvgl_simulator/build/_deps/lv_port_linux-subbuild/lv_port_linux-populate-prefix/tmp/lv_port_linux-populate-gitclone.cmake:61 (message):
  Failed to checkout tag: 'e115663ba098439f16bac63885d511c89694e21f'


gmake[2]: *** [CMakeFiles/lv_port_linux-populate.dir/build.make:102: lv_port_linux-populate-prefix/src/lv_port_linux-populate-stamp/lv_port_linux-populate-download] Error 1
gmake[1]: *** [CMakeFiles/Makefile2:83: CMakeFiles/lv_port_linux-populate.dir/all] Error 2
gmake: *** [Makefile:91: all] Error 2

CMake Error at /opt/esp/tools/cmake/3.30.2/share/cmake-3.30/Modules/FetchContent.cmake:1918 (message):
  Build step for lv_port_linux failed: 2
Call Stack (most recent call first):
  /opt/esp/tools/cmake/3.30.2/share/cmake-3.30/Modules/FetchContent.cmake:1609 (__FetchContent_populateSubbuild)
  /opt/esp/tools/cmake/3.30.2/share/cmake-3.30/Modules/FetchContent.cmake:2145:EVAL:2 (__FetchContent_doPopulation)
  /opt/esp/tools/cmake/3.30.2/share/cmake-3.30/Modules/FetchContent.cmake:2145 (cmake_language)
  /opt/esp/tools/cmake/3.30.2/share/cmake-3.30/Modules/FetchContent.cmake:1978:EVAL:1 (__FetchContent_Populate)
  /opt/esp/tools/cmake/3.30.2/share/cmake-3.30/Modules/FetchContent.cmake:1978 (cmake_language)
  build/cmake/CPM.cmake:1211 (FetchContent_Populate)
  build/cmake/CPM.cmake:989 (cpm_fetch_package)
  CMakeLists.txt:39 (CPMAddPackage)


-- Configuring incomplete, errors occurred!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions