-
Notifications
You must be signed in to change notification settings - Fork 108
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
flatpak-cargo-builder fails because Cargo.toml in git submodule is not found #322
Comments
Thanks for detailed issue. You seem more proficient with Cargo then I am; what do you think would be the optimal solution here - clone git repos recursively, acknowledge excluded paths, or both? |
Well, for my particular situation acknowledging the excluded paths should be enough. But I can imagine that cloning recursively could be needed in other situations. |
Hmm, I'm not sure I understand how
So, is a path listed in |
From The Cargo Book:
To me it seems that |
@mfschumann Can you please try |
With this version the error does not occur anymore. Thanks for the quick fix! |
Did you manage to build the app (or at least get Cargo past "fetch" stage and start compiling)? |
Well, not really. The error in The correct |
flatpak-builder version
1.2.2
Linux distribution and version
Fedora Silverblue 36
Affected flatpak-builder tool
cargo/flatpak-cargo-generator.py
flatpak-builder tool cli args
Cargo.lock
Source repository URL
https://github.com/flathub/eu.betterbird.Betterbird/tree/58b020362586ad089249282a3e019705f310f8ff
Flatpak-builder manifest URL
No response
Description
I got the following error when trying to regenerate a sources json from an updated Cargo.lock for eu.betterbird.Betterbird:
The folder
/var/home/martin/.cache/flatpak-cargo/https_github.com_mozilla_application-services/components/external
only containsglean
, which is empty.The issue seems to be caused by a submodule in the https://github.com/mozilla/application-services repo not being checked out when cloning the repo without
--recursive
:flatpak-builder-tools/cargo/flatpak-cargo-generator.py
Line 114 in 4cdd030
Also, the
exclude
list in Cargo.toml at mozilla/application-services seems to be ignored by flatpak-cargo-generator, causing the missing submodule issue to surface in the first place.The text was updated successfully, but these errors were encountered: