Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fatal: invalid reference: master #2

Open
Jiawei1996 opened this issue Mar 20, 2024 · 2 comments
Open

fatal: invalid reference: master #2

Jiawei1996 opened this issue Mar 20, 2024 · 2 comments

Comments

@Jiawei1996
Copy link

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
Copy link
Contributor

Ahh, good point.
Will look into fixing this

@alwalidsalama
Copy link
Contributor

alwalidsalama commented Jun 19, 2024

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants