Skip to content

downloadCargoPackageFromGit: use cargo package for creating the file list#975

Open
vikanezrimaya wants to merge 1 commit intoipetkov:masterfrom
nyantec:fix/swap-rg-for-cargo-package
Open

downloadCargoPackageFromGit: use cargo package for creating the file list#975
vikanezrimaya wants to merge 1 commit intoipetkov:masterfrom
nyantec:fix/swap-rg-for-cargo-package

Conversation

@vikanezrimaya
Copy link

@vikanezrimaya vikanezrimaya commented Feb 11, 2026

Motivation

This avoids pitfalls with rg misinterpreting include/exclude rules, because it uses THE SAME logic cargo uses for .crate files.

Because it uses Cargo itself.

Issues with lock file generation are side-stepped by using --exclude-lockfile, which I verified completely disables the check that the lockfile is up-to-date.

Fixes #962

Checklist

  • added tests to verify new behavior
  • added an example template or updated an existing one
  • updated docs/API.md (or general documentation) with changes
  • updated CHANGELOG.md

…e list

This avoids pitfalls with `rg` misinterpreting include/exclude rules,
because it uses THE SAME logic `cargo` uses for .crate files.

Because it uses Cargo itself.

Issues with lock file generation are side-stepped by using
`--exclude-lockfile`, which I verified completely disables the check
that the lockfile is up-to-date.

Fixes ipetkov#962
@vikanezrimaya vikanezrimaya force-pushed the fix/swap-rg-for-cargo-package branch from bb539cc to cbfdc19 Compare February 11, 2026 23:50
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.

Incorrect include/exclude behavior with git dependencies (doesn't match cargo package)

1 participant