Problem with cargo-vendor-deps
#711
-
Hello, I'm working off of this branch: https://github.com/anagrambuild/bonsol/blob/da9cbe6ed248b1c159cf10542d4d59f1986f626e/flake.nix And running into this error:
I'm not sure I understand, and can't seem to find a good answer online about how to solve this. I have a |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Hi @eureka-cpu ! The first thing that comes to mind is run Otherwise if you get the same error after running Hope this helps! |
Beta Was this translation helpful? Give feedback.
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 vanillacargo build ...
). If everything builds fine that way, then there might be a vendoring bug incrane
(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…