Skip to content

Problem with cargo-vendor-deps #711

Answered by ipetkov
eureka-cpu asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @eureka-cpu ! The first thing that comes to mind is run cargo vendor then follow its instructions (e.g. paste some configs in .cargo/config.toml) and try to build your project outside of Nix (e.g. a vanilla cargo build ...). If everything builds fine that way, then there might be a vendoring bug in crane (in which case open an issue and I'll check it out).

Otherwise if you get the same error after running cargo vendor, then it is possible one of your git dependencies is not vendor-friendly (sadly the way cargo handles git deps by default happens to allow certain project configurations to work but fail when their sources are vendored). If that's the case, the only remedy would be to fix…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@eureka-cpu
Comment options

Answer selected by eureka-cpu
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