bynk.package.duplicate_source
Error One package is reached from two different directories; a build holds one copy of each package.
A build holds one copy of each package, so every dependency on a package must reach it in the same directory. Two entries that name one package but point at different directories would give two copies, with two sets of types where there should be one. Point both at the same directory, or drop one. Two aliases onto one directory are fine.
Example
[dependencies]lib = { package = "acme/lib", path = "pkg/lib" }util = { package = "acme/lib", path = "vendor/lib" } // ✗ `acme/lib` from a second directory
util = { package = "acme/lib", path = "pkg/lib" } // ✓ the same directoryIn the Book
See also
- Every code in its category, Packages, on the diagnostic index.
bynk explain bynk.package.duplicate_sourceshows the same from the installed toolchain, without a network.