Skip to content

Conversation

@octo-sts
Copy link
Contributor

@octo-sts octo-sts bot commented Jan 9, 2026

qdrant/1.16.3-r1: fix GHSA-2gh3-rmm4-6rq5

Advisory data: https://github.com/wolfi-dev/advisories/blob/main/qdrant.advisories.yaml


"Breadcrumbs" for this automated service

Inspected git repositories: https://github.com/qdrant/[email protected]

@octo-sts octo-sts bot added automated pr request-cve-remediation rust/cargobump GHSA-2gh3-rmm4-6rq5 p:qdrant P1 This label indicates our scanning found High, Medium or Low CVEs for these packages. labels Jan 9, 2026
@octo-sts
Copy link
Contributor Author

octo-sts bot commented Jan 9, 2026

🔢 Build Failed: Dependency Version Mismatch

failed to select a version for the requirement protobuf = "^2.28.0" candidate versions found which didn't match: 3.7.2

Build Details

Category Details
Build System Cargo/Rust
Failure Point cargobump --run-update=false --bump-file ./cargobump-deps.yaml

Root Cause Analysis 🔍

The build is trying to update the protobuf dependency from version 2.28.0 to 3.7.2, but there's a version constraint mismatch. The storage package requires protobuf ^2.28.0 (which means >= 2.28.0 but < 3.0.0), but only version 3.7.2 is available in the crates.io index, which doesn't satisfy the ^2.28.0 constraint due to the major version difference.


🔍 Build failure fix suggestions

Found similar build failures that have been fixed in the past and analyzed them to suggest a fix:

Similar PRs with fixes

Suggested Changes

File: qdrant.yaml

  • addition (after git-checkout step)
    Original:
  - uses: rust/cargobump

Replacement:

  - runs: |
      sed -i 's/protobuf = "\^2\.28\.0"/protobuf = "3.7.2"/' Cargo.toml

  - uses: rust/cargobump

Content:

Add sed command to update protobuf version constraint
Click to expand fix analysis

Analysis

The similar fix shows a pattern of using sed commands to update protobuf version constraints in Cargo.toml files when cargobump encounters version mismatches. The fix updates the exact version string to match what's available in the crates.io index. In the example, protobuf was updated from "3.7.1" to "3.7.2" using a sed replacement command that targets the specific protobuf dependency line in Cargo.toml.

Click to expand fix explanation

Explanation

This fix addresses the root cause by updating the protobuf version constraint before cargobump runs. The current error shows that the package requires protobuf ^2.28.0 (any version >= 2.28.0 but < 3.0.0), but only 3.7.2 is available in the crates.io index. The sed command changes the version constraint from "^2.28.0" to "3.7.2" to match the available version. This allows cargobump to proceed without version conflicts. The pattern follows the successful fix in the similar issue where protobuf was updated from 3.7.1 to 3.7.2.

Click to expand alternative approaches

Alternative Approaches

  • Update the Cargo.lock file directly to pin protobuf to 3.7.2, though this is less maintainable
  • Modify multiple Cargo.toml files if the protobuf dependency appears in workspace members
  • Use cargo-edit commands to update the dependency version programmatically instead of sed

Was this comment helpful? Please use 👍 or 👎 reactions on this comment.

@octo-sts octo-sts bot added the ai/skip-comment Stop AI from commenting on PR label Jan 9, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ai/skip-comment Stop AI from commenting on PR automated pr GHSA-2gh3-rmm4-6rq5 p:qdrant P1 This label indicates our scanning found High, Medium or Low CVEs for these packages. request-cve-remediation rust/cargobump

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant