Skip to content
Playground(another site)

bynk.dependency.path_outside_root

Error A path dependency declared by a dependency resolves outside the workspace; a dependency's own path dependencies are honoured only between members of one workspace.

Your own project's path dependencies can point anywhere, but a dependency's own path dependencies are honoured only when they stay inside the workspace: a path out of it names a directory that need not exist where the package is used. A fetched package's path dependencies are never honoured. Move the target into the workspace.

Example

# lib/bynk.toml, a dependency of the project
[dependencies]
core = { package = "acme/core", path = "../../outside" } // ✗ outside the workspace
core = { package = "acme/core", path = "../core" } // ✓ a workspace member

In the Book

See also

  • Every code in its category, Other, on the diagnostic index.
  • bynk explain bynk.dependency.path_outside_root shows the same from the installed toolchain, without a network.