Skip to content

Support fully-qualified --package arguments #3563

@joshlf

Description

@joshlf

We use Kani in zerocopy, and pass --package zerocopy in CI. However, on our 0.7 branch, we are encountering this failure:

error: There are multiple `zerocopy` packages in your project, and the specification `zerocopy` is ambiguous.
Please re-run this command with one of the following specifications:
  path+file:///home/runner/work/zerocopy/zerocopy#0.7.35
  registry+https://github.com/rust-lang/crates.io-index#zerocopy@0.7.35
error: Failed to execute cargo (exit status: 101). Found 0 compilation errors.

This seems to be due to Kani having a transitive dependency on zerocopy 0.7. However, Kani does not support passing either suggested syntax as an argument to the --package flag. If Kani supported --package path+file:///home/runner/work/zerocopy/zerocopy#0.7.35, it would allow us to fix this failure.

Metadata

Metadata

Assignees

No one assigned

    Labels

    T-UserTag user issues / requests[C] BugThis is a bug. Something isn't working.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions