-
Hi! I maintain a tiny TUI page generator for Zola (a static site generator): https://gitlab.com/bemyak/zola-new Since Zola itself is not published on crates.io, I have to import it as a git dependency: [dependencies]
zola_site = { git = "https://github.com/getzola/zola", tag = "v0.19.1", package = "site" }
zola_utils = { git = "https://github.com/getzola/zola", tag = "v0.19.1", package = "utils" } However, building it fails because it uses git submodules in the root of the git repo:
I've made sure to include those files in the src filter: craneFilter = path: type: (
builtins.match ".*\.packdump$" path != null ||
builtins.match ".*\.themedump$" path != null ||
craneLib.filterCargoSources path type
); … but it didn't help :( Could you please give me guidance on how to solve this issue? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Hi @bemyak! Typically crates should not attempt to read any files outside of crate's own "root" directory (i.e. where You have two (well, three) options to resolve the issue:
Hope this helps! |
Beta Was this translation helpful? Give feedback.
Hi @bemyak! Typically crates should not attempt to read any files outside of crate's own "root" directory (i.e. where
Cargo.toml
file is stored). Git dependencies happen to work (outside of Nix/crane) because of how cargo checks out the repo, but generally the same code would be broken if the code was ever published to a registry like crates.io.You have two (well, three) options to resolve the issue:
Hope this helps!