Skip to content

Conversation

@redsun82
Copy link
Contributor

Transitive dependencies can get updated, and this happened to the cfg_if crate that caused this test to fail on main.

By fixing the expected file but also committing the cargo lock file, we should be avoiding this problem in the future.

Copilot AI review requested due to automatic review settings June 10, 2025 09:58
@redsun82 redsun82 requested a review from a team as a code owner June 10, 2025 09:58
@github-actions github-actions bot added the Rust Pull requests that update Rust code label Jun 10, 2025
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR updates the crate graph test expectations to match the new cfg_if version and ensures the test’s Cargo.lock is tracked to prevent future transitive dependency drift.

  • Bumps cfg_if expected version from 1.0.0 to 1.0.1 in the test output.
  • Adds a .gitignore rule to unignore and commit the test’s Cargo.lock.

Reviewed Changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated no comments.

File Description
rust/ql/test/extractor-tests/crate_graph/crates.expected Updated cfg_if entries to version 1.0.1 in expected output
rust/ql/test/extractor-tests/crate_graph/.gitignore Unignore Cargo.lock to lock test dependencies
Comments suppressed due to low confidence (1)

rust/ql/test/extractor-tests/crate_graph/.gitignore:1

  • The PR description mentions committing Cargo.lock, but I don’t see Cargo.lock added in this diff. Please ensure the test’s Cargo.lock file is actually committed alongside this .gitignore update to lock transitive dependencies.
!/Cargo.lock

@redsun82 redsun82 merged commit 3af10d2 into main Jun 10, 2025
14 checks passed
@redsun82 redsun82 deleted the redsun82/rust-fix-crate-graph-test branch June 10, 2025 11:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Rust Pull requests that update Rust code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants