make clean fails to find Cargo manifests
-
I agree that I have searched opened and closed issues to prevent duplicates.
Description
Running make clean
fails to find Cargo.toml files.
The command outputs multiple lines similar to error: manifest path `cookbook/pkgutils/Cargo.toml` does not exist
.
I think that in the Makefile the problem is that we cd into cookbook/
even though the rest of the commands should be run from the repository root.
Environment info
- Operating system: openSUSE Tumbleweed 20200110
-
uname -a
:Linux tomwagner-tablet 5.4.7-1-default #1 SMP Wed Jan 1 07:55:50 UTC 2020 (34ebd00) x86_64 x86_64 x86_64 GNU/Linux
-
rustc -V
:rustc 1.41.0-nightly (412f43ac5 2019-11-24)
-
git rev-parse HEAD
:d5dd998b5395008091db882df6af163e5aaf16a4
Steps to reproduce
- Run
make all
- Run
make clean
Behavior
-
Expected behavior:
make clean
correctly cleans everything and finishes without error.
-
Actual behavior:
make clean
outputs errors and does not finish cleaning.
tomwagner@tomwagner-tablet~/C/redox (master)> make clean
cd cookbook && ./clean.sh
cargo clean --manifest-path cookbook/pkgutils/Cargo.toml
cargo clean --manifest-path installer/Cargo.toml
cargo clean --manifest-path kernel/Cargo.toml
cargo clean --manifest-path kernel/syscall/Cargo.toml
cargo clean --manifest-path redoxfs/Cargo.toml
fusermount -u build/filesystem/ || true
rm -rf build
cook - acid distclean
cook - acid untar
-- cut long cookbook output --
cook - zlib unstage
cook - zlib unprepare
error: manifest path `cookbook/pkgutils/Cargo.toml` does not exist
error: manifest path `installer/Cargo.toml` does not exist
error: manifest path `kernel/Cargo.toml` does not exist
error: manifest path `kernel/syscall/Cargo.toml` does not exist
error: manifest path `redoxfs/Cargo.toml` does not exist
fusermount: bad mount point build/filesystem/: No such file or directory
- Proposed solution: See PR !1228 (closed)
Edited by Tom A. Wagner