Problem
Currently, packages specified by git repositories will search the git project for sub-packages. The following will correctly find bevy_math
[dependencies]
bevy = { path = "/Users/jpedrick/Development/bevy", default-features = false }
bevy_math = { git = "https://github.com/bevyengine/bevy.git" }
However, with path specified packages this doesn't work:
[dependencies]
bevy = { path = "/Users/jpedrick/Development/bevy", default-features = true }
bevy_math = { path = "/Users/jpedrick/Development/bevy" }
Instead, bevy_math needs to be explicitly targeted with the path
[dependencies]
bevy_math = { path = "/Users/jpedrick/Development/bevy/crates/bevy_math/" }
I found this a bit confusing, as I expected crate imports with path to work the same as git.
Proposed Solution
The following would find the bevy_math package in /Users/jpedrick/Development/bevy/crates/bevy_math/ by searching for the Cargo.toml with package.name == "bevy_math"
[dependency]
bevy_math = { path = "/Users/jpedrick/Development/bevy" }
Notes
No response
Problem
Currently, packages specified by git repositories will search the git project for sub-packages. The following will correctly find
bevy_mathHowever, with path specified packages this doesn't work:
Instead,
bevy_mathneeds to be explicitly targeted with thepathI found this a bit confusing, as I expected crate imports with
pathto work the same asgit.Proposed Solution
The following would find the
bevy_mathpackage in/Users/jpedrick/Development/bevy/crates/bevy_math/by searching for theCargo.tomlwithpackage.name == "bevy_math"Notes
No response