Closed sebastian-de closed 2 years ago
Can you please try this patch and tell if it fixes the problem for you?
diff --git a/cargo/flatpak-cargo-generator.py b/cargo/flatpak-cargo-generator.py
index 70ff5e8..cdbc3ff 100755
--- a/cargo/flatpak-cargo-generator.py
+++ b/cargo/flatpak-cargo-generator.py
@@ -162,7 +162,7 @@ async def get_cargo_toml_packages(root_toml, root_dir):
if 'workspace' in root_toml:
for member in root_toml['workspace']['members']:
for subpkg_toml in glob.glob(os.path.join(root_dir, member, 'Cargo.toml')):
- subpkg = os.path.relpath(os.path.dirname(subpkg_toml), root_dir)
+ subpkg = os.path.dirname(subpkg_toml)
logging.debug("Loading workspace member %s in %s", member, root_dir)
pkg_toml = load_toml(subpkg_toml)
await get_dep_packages(pkg_toml, subpkg)
Yes, this seems to fix it. Thanks!
flatpak-builder version
1.2.2
Linux distribution and version
Fedora 36
Affected flatpak-builder tool
cargo/flatpak-cargo-generator.py
flatpak-builder tool cli args
No response
Source repository URL
https://github.com/lapce/lapce
Flatpak-builder manifest URL
https://github.com/flathub/dev.lapce.lapce
Description
@gasinvein commit b2d1373 breaks
flatpak-cargo-generator.py
for the following repository: https://github.com/lapce/xi-editorI'll have a look at the change later.