Skip to content

[SVLS-9965] chore: drop version from git dependencies that pin a rev - #1465

Open
lym953 wants to merge 1 commit into
mainfrom
yiming.luo/cargo-drop-git-dep-version
Open

lym953 wants to merge 1 commit into
mainfrom
yiming.luo/cargo-drop-git-dep-version

Conversation

@lym953

@lym953 lym953 commented Oct 27, 2026

Copy link
Copy Markdown
Contributor

Problem

Renovate, the bot that opens dependency PRs, opens downgrade PRs for the two saluki crates, datadog-protos and ddsketch-agent. Examples are #1351, #1363, #1398 and #1399. Each one moves the crates from f863626 (November 2025) back to cd6db96 (November 2024).

Cause

Three git dependencies in bottlecap/Cargo.toml have both version and rev. Renovate reads version as the name of a git tag. Saluki has a tag 0.1.0, so Renovate proposes the commit of that tag. ddoghq/dd-source#148796 has the steps in Renovate's code.

For Cargo, version on a git dependency does not select the code. Cargo builds the rev commit and uses version only to check the crate version at that commit. The other use of the field is publishing to crates.io, and bottlecap has publish = false.

This PR

Removes version from the three git dependencies that pin a rev: datadog-protos, ddsketch-agent and libddwaf. The other git dependencies, from serverless-components, already have no version: dogstatsd, datadog-fips, datadog-agent-config and datadog-agent-trace-sampler.

Impact

  • Build: Cargo builds the same commits.
  • Renovate: For a git dependency with only rev, Renovate proposes the newest commit of the repository. The saluki downgrade PRs stop, and upgrade PRs can come in their place. libddwaf can also get upgrade PRs, which it does not get today. ddoghq/dd-source#148796 turns off Renovate for the two saluki crates in this repository.

Testing

Steps

  1. Ran cargo metadata --locked --format-version 1 in bottlecap/.
  2. Ran git status.

Result

Check Result
cargo metadata --locked Pass
Cargo.lock Not changed

I did not build bottlecap locally. CI builds it.

🤖 Generated with Claude Code

For a git dependency, Cargo builds the rev commit and uses version only
as a check. bottlecap is not published, so the field has no other use.
Renovate reads the field as a git tag name and proposes the saluki tag
0.1.0 commit, which is older than the pinned rev.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@lym953
lym953 marked this pull request as ready for review October 27, 2026 18:29
Copilot AI balanced review requested due to automatic review settings October 27, 2026 18:29
@lym953
lym953 requested a review from a team as a code owner October 27, 2026 18:29
@lym953
lym953 requested a review from shreyamalpani October 27, 2026 18:29
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 27, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-27T18:30:32.470521Z ee657e9 Draft marked ready
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

🟢 Approval recommended

The narrow manifest changes preserve dependency revisions and build features, with no blocking issues identified.

No open issues 🎉

What changed in this PR

This PR adjusts Bottlecap’s Git dependency declarations to prevent Renovate from proposing tag-based downgrades while preserving the commits used by Cargo.

Changes:

  • Removes version from datadog-protos, ddsketch-agent, and libddwaf.
  • Keeps Git sources, pinned revisions, and feature settings unchanged.
File Description
bottlecap/​Cargo.toml Removes version constraints from three revision-pinned Git dependencies.

Review effort: Balanced

@datadog-prod-us1-5

datadog-prod-us1-5 Bot commented Oct 27, 2026 •

Copy link
Copy Markdown

Pipelines

✨ Unblock PR with BitsAI

❌ Errors

Your PR has failed checks. Please review the issues below and take necessary action before merging.

🚦 3 Pipeline jobs failed

DataDog/datadog-lambda-extension | e2e-test-status (amd64) — 🔧 Needs a code fix, caused by this PR

View more details · View in GitLab

Bottlecap (Rust) | Audit

View more details · View in GitHub Actions

DataDog/datadog-lambda-extension | bottlecap (arm64)

View more details · View in GitLab

Useful? React with 👍 / 👎

This comment will be updated automatically if new data arrives.
🔗 Commit SHA: ee657e9 | Docs | View more details | Give us feedback!

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.

2 participants