qbox icon indicating copy to clipboard operation
qbox copied to clipboard

fatal: invalid reference: master

Open Jiawei1996 opened this issue 11 months ago • 2 comments

Encountered an error when running cmake -B build:

Scanning dependencies of target gs-cmake-populate [ 11%] Creating directories for 'gs-cmake-populate' [ 22%] Performing download step (git clone) for 'gs-cmake-populate' Cloning into 'gs-cmake-src'... warning: You appear to have cloned an empty repository. fatal: invalid reference: master CMake Error at gs-cmake-subbuild/gs-cmake-populate-prefix/tmp/gs-cmake-populate-gitclone.cmake:40 (message): Failed to checkout tag: 'master'

make[2]: *** [CMakeFiles/gs-cmake-populate.dir/build.make:92: gs-cmake-populate-prefix/src/gs-cmake-populate-stamp/gs-cmake-populate-download] Error 1 make[1]: *** [CMakeFiles/Makefile2:76: CMakeFiles/gs-cmake-populate.dir/all] Error 2 make: *** [Makefile:84: all] Error 2

CMake Error at /usr/share/cmake-3.16/Modules/FetchContent.cmake:915 (message): Build step for gs-cmake failed: 2 Call Stack (most recent call first): /usr/share/cmake-3.16/Modules/FetchContent.cmake:1006 (__FetchContent_directPopulate) /usr/share/cmake-3.16/Modules/FetchContent.cmake:1047 (FetchContent_Populate) CMakeLists.txt:27 (FetchContent_MakeAvailable)

-- Configuring incomplete, errors occurred!

Cause of the error is upon cloning the "cmake-boilerplate" repository by running the follow code, an empty directory was obtained.

  execute_process(
    COMMAND "/usr/bin/git"  clone --no-checkout "https://gitclone.com/github.com/quic/cmake-boilerplate.git" "gs-cmake-src"
    WORKING_DIRECTORY "/home/fjwei/git_repo/qbox/build/_deps"
    RESULT_VARIABLE error_code
    )

Could you please advise on how to resolve this problem?

Jiawei1996 avatar Mar 20 '24 11:03 Jiawei1996

Ahh, good point. Will look into fixing this

markfoodyburton avatar Mar 20 '24 11:03 markfoodyburton

Hello @Jiawei1996, Apologies for the delay in getting back to you. Please let us know if you are still experiencing this issue or if there’s anything else we can assist you with. Best regards.

alwalidsalama avatar Jun 19 '24 07:06 alwalidsalama