Skip to content

Conversation

@redsun82
Copy link
Contributor

This should avoid test expectations differences when transitive dependencies get updated.

Copilot AI review requested due to automatic review settings June 16, 2025 08:53
@redsun82 redsun82 requested a review from a team as a code owner June 16, 2025 08:53
@github-actions github-actions bot added the Rust Pull requests that update Rust code label Jun 16, 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 .gitignore files to stop excluding Cargo.lock in test directories, ensuring Cargo.lock files can be committed alongside tests to stabilize transitive dependency versions.

  • Removed the exception that ignored Cargo.lock in extractor-tests/crate_graph
  • Stopped ignoring Cargo.lock at the rust/ql/test level

Reviewed Changes

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

File Description
rust/ql/test/extractor-tests/crate_graph/.gitignore Removed !/Cargo.lock exception to allow locking
rust/ql/test/.gitignore Removed Cargo.lock ignore entry to include lockfile

@redsun82 redsun82 merged commit 30ab9b7 into main Jun 16, 2025
14 checks passed
@redsun82 redsun82 deleted the redsun82/rust-test-cargo-lock branch June 16, 2025 10:21
@geoffw0
Copy link
Contributor

geoffw0 commented Jun 16, 2025

I think this may have fixed an issue I was having running the CWE-770 test locally. Thanks!

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.

4 participants