-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
Revert "Go back to CMake 3.25.2 (#4496)" #4503
Conversation
Add a preceding commit with this patch to get more verbose information about the connection failure: diff --git a/tools/FindCatch.cmake b/tools/FindCatch.cmake
index 57bba58b..ef120bc8 100644
--- a/tools/FindCatch.cmake
+++ b/tools/FindCatch.cmake
@@ -36,10 +36,16 @@ endfunction()
function(_download_catch version destination_dir)
message(STATUS "Downloading catch v${version}...")
set(url https://github.com/philsquared/Catch/releases/download/v${version}/catch.hpp)
- file(DOWNLOAD ${url} "${destination_dir}/catch.hpp" STATUS status)
+ file(DOWNLOAD ${url} "${destination_dir}/catch.hpp" STATUS status LOG log)
list(GET status 0 error)
if(error)
- message(FATAL_ERROR "Could not download ${url}")
+ string(REPLACE "\n" "\n " log " ${log}")
+ message(FATAL_ERROR
+ "Could not download URL:\n"
+ " ${url}\n"
+ "Log:\n"
+ "${log}"
+ )
endif()
set(CATCH_INCLUDE_DIR
"${destination_dir}" |
6a139e1
to
8c88d04
Compare
Thanks a lot @bradking, I'd say your patch is a keeper! Here is one log: https://github.com/pybind/pybind11/actions/runs/4138219644/jobs/7154367988 IIUC it reads a bunch of ~1k blocks successfully but then runs into errors:
|
The curl (in CMake) issue was fixed: https://gitlab.kitware.com/cmake/cmake/-/issues/24398 The fix will be in 3.26.0-rc3 Link to releases (for checking if the rc3 release happened already): https://github.com/Kitware/CMake/releases |
8c88d04
to
10dd074
Compare
10dd074
to
08bf54c
Compare
Thanks @henryiii! |
This reverts PR #4496 (b8f2855).
CMake bug report (suspected regression): https://gitlab.kitware.com/cmake/cmake/-/issues/24398
Description
Suggested changelog entry: