Skip to content

Conversation

@justanotheranonymoususer
Copy link
Contributor

Current command fails with:

error: multiple packages with binaries found: cargo-wdk, rust-project. When installing a git repository, cargo will always search the entire repo for any Cargo.toml.
Please specify a package, e.g. `cargo install --git https://github.com/microsoft/windows-drivers-rs.git cargo-wdk`.

See rust-lang/cargo#4830.

Signed-off-by: justanotheranonymoususer <justanotheranonymoususer@users.noreply.github.com>
@wmmc88 wmmc88 requested a review from Copilot June 9, 2025 18:54
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 installation command in the cargo-wdk README to address the cargo error regarding multiple packages with binaries.

  • Updated installation command to explicitly specify the package name
  • Removed the redundant "--bin" flag which was causing the error
Comments suppressed due to low confidence (1)

crates/cargo-wdk/README.md:32

  • The updated command now explicitly specifies the package name which resolves the cargo error. Consider adding an inline comment referencing the cargo issue (rust-lang/cargo#4830) to clarify for future maintainers why this change was made.
cargo install --git https://github.com/microsoft/windows-drivers-rs.git cargo-wdk --locked

Copy link
Collaborator

@wmmc88 wmmc88 left a comment

Choose a reason for hiding this comment

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

thanks for the pr @justanotheranonymoususer!

@wmmc88 wmmc88 changed the title Fix cargo-wdk command in README.md fix: invalid argument in cargo-wdk command in README.md Jun 10, 2025
@wmmc88 wmmc88 changed the title fix: invalid argument in cargo-wdk command in README.md docs: fix invalid argument in cargo-wdk command in README.md Jun 10, 2025
@gurry gurry added this pull request to the merge queue Jun 11, 2025
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Jun 11, 2025
@gurry gurry added this pull request to the merge queue Jun 11, 2025
Merged via the queue into microsoft:main with commit 5242d29 Jun 11, 2025
63 checks passed
@justanotheranonymoususer justanotheranonymoususer deleted the patch-1 branch June 12, 2025 15:01
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.

3 participants