Skip to content

fix!: require minimum libcurl 8.7.1 to fix curl bug - #16375

Merged
scotthart merged 7 commits into
googleapis:mainfrom
scotthart:curl_minimum_version_8_7_1
Aug 24, 2026
Merged

fix!: require minimum libcurl 8.7.1 to fix curl bug#16375
scotthart merged 7 commits into
googleapis:mainfrom
scotthart:curl_minimum_version_8_7_1

Conversation

@scotthart

@scotthart scotthart commented Aug 24, 2026

Copy link
Copy Markdown
Member

Previous versions of libcurl contained a bug in curl_retry_request.

fixes #16343

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request updates the minimum required version of libcurl from 7.74.0 to 8.7.1 across the repository, including updating documentation, Dockerfiles, and CMake configurations. Feedback on these changes suggests installing libnghttp2-devel in the Dockerfile to maintain HTTP/2 support when building curl from source, and using the standard find_package(CURL 8.7.1 REQUIRED) syntax in CMake files instead of manual version checks.

Comment thread ci/cloudbuild/dockerfiles/fedora-latest-cmake.Dockerfile Outdated
Comment thread google/cloud/google_cloud_cpp_rest_internal.cmake Outdated
Comment thread google/cloud/storage/google_cloud_cpp_storage.cmake Outdated
@codecov

codecov Bot commented Aug 24, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 92.25%. Comparing base (30817a8) to head (0e8a1ba).
⚠️ Report is 4 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main   #16375      +/-   ##
==========================================
- Coverage   92.26%   92.25%   -0.01%     
==========================================
  Files        2239     2239              
  Lines      210719   210719              
==========================================
- Hits       194412   194406       -6     
- Misses      16307    16313       +6     

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@scotthart
scotthart marked this pull request as ready for review August 24, 2026 16:09
@scotthart
scotthart requested review from a team as code owners August 24, 2026 16:09
Comment thread ci/cloudbuild/dockerfiles/demo-debian-bookworm.Dockerfile
@scotthart
scotthart enabled auto-merge (squash) August 24, 2026 20:32
@scotthart
scotthart merged commit 52dfbfb into googleapis:main Aug 24, 2026
66 of 67 checks passed
Comment thread CHANGELOG.md

### Dependency version update

- Updated minimum version of libcurl from 7.74.0 to 8.7.1. This was done primarily to avoid a known bug introduced in libcurl 8.5.0. For more information, see [Issue #16343](https://github.com/googleapis/google-cloud-cpp/issues/16343).

@seankungrubrik seankungrubrik Aug 24, 2026

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

One caveat on the phrase introduced in libcurl 8.5.0:
I mentioned libcurl 8.5.0 because it is the version we use. I'm not sure which version introduced this bug.

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

Successfully merging this pull request may close these issues.

[storage] libcurl 8.5.0 skips WriteVector rewind on HTTP/2 retry when writebytecount==0, silently corrupting resumable uploads

4 participants