quic / qbox

Qbox
Other
34 stars 9 forks source link

fatal: invalid reference: master #2

Open Jiawei1996 opened 6 months ago

Jiawei1996 commented 6 months ago

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?

markfoodyburton commented 6 months ago

Ahh, good point. Will look into fixing this

alwalidsalama commented 3 months ago

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.