Meson/Cargo can't find local dependency that is definitely there
Hello,
I am writing a Rust application and in my Cargo.toml
I specify a dependency by file path (see below). Building fails however, because Builder can't find that dependency's Cargo.toml
.
I am sure that both the file and the containing directory exist. I checked with ls
copy pasting the exact path Builder prints it can't find. What's more, when I manually execute the failing command, it succeeds.
The following things I tried, but they made no difference:
- Disabling SELinux
- Flatpak version (Builder 40) or Fedora's repository version (Builder 3.38)
- Ensuring that Builder has Flatpak rights to the home directory
- Making sure to build from a clean slate
Is this usage not possible in Builder? I vaguely remember previously doing it this way.
Cargo.toml dependency specification
[dependencies]
# libblackbody = "0.5.0" # Normally, for distribution, this works
libblackbody = { path = "/home/anieuwland/ontwikkeling/blackbody/libblackbody" } # For development, this doesn't work
Snippet of failing build command
[..]
Updating crates.io index
error: failed to get `libblackbody` as a dependency of package `blackbody v1.3.0-dev (/home/anieuwland/ontwikkeling/blackbody/blackbody)`
Caused by:
failed to load source for dependency `libblackbody`
Caused by:
Unable to update /home/anieuwland/ontwikkeling/blackbody/libblackbody
Caused by:
failed to read `/home/anieuwland/ontwikkeling/blackbody/libblackbody/Cargo.toml`
Caused by:
No such file or directory (os error 2)
[3/4] Generating eu.nimmerfort.blackbody.appdata.xml_data_merge with a custom command
FAILED: src/blackbody
/bin/sh /home/anieuwland/ontwikkeling/blackbody/blackbody/build-aux/cargo.sh /home/anieuwland/.var/app/org.gnome.Builder/cache/gnome-builder/projects/blackbody/builds/eu.nimmerfort.blackbody.json-flatpak-org.gnome.Platform-x86_64-3.38-master /home/anieuwland/ontwikkeling/blackbody/blackbody src/blackbody release blackbody
ninja: build stopped: subcommand failed.