Skip to content
Playground(another site)

bynk.package.name_mismatch

Error A path dependency's package names a different package than the directory's [package] name.

A path dependency gives the package's name twice: package = "acme/lib" in your [dependencies], and name under [package] in the manifest at that path. They must agree, so that what you asked for is what you get. A mismatch usually means the path is the wrong directory, or the package was renamed. Correct whichever is wrong.

Example

[dependencies]
money = { package = "acme/money", path = "pkg/lib" } // ✗ `pkg/lib` is the package `acme/lib`
money = { package = "acme/lib", path = "pkg/lib" } // ✓ the name it declares

In the Book

See also

  • Every code in its category, Packages, on the diagnostic index.
  • bynk explain bynk.package.name_mismatch shows the same from the installed toolchain, without a network.