Skip to content

Can't build project with a git-based dependency using path in its workspace #693

Answered by ipetkov
kalebpace asked this question in Q&A
Discussion options

You must be logged in to vote

Oh I see, the build script is effectively trying to run cargo metadata and find the path to its relative member! Yes unfortunately this won't fly because cargo expects each crate to be vendored differently than the way that "raw" git-dependencies happen to work...

Please take a look at the following FAQ which should explain the situation further and suggest some workarounds: https://github.com/ipetkov/crane/blob/d995bc5e2d5853a72367d6e10df0b756f38a3aff/docs/faq/git-dep-cannot-find-relative-path.md

(We've had questions about this situation come up before and somehow I hadn't actually documented it until now; better late than never, hope it helps!)

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@kalebpace
Comment options

@ipetkov
Comment options

Answer selected by ipetkov
@kalebpace
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants