astro_modloader
astro_modloader copied to clipboard
Error compiling on Linux, cannot find "licenses.md"
trafficstars
note: for more details see https://doc.rust-lang.org/cargo/reference/resolver.html#resolver-versions
Compiling astro_modloader v0.1.14 (/home/bkirkbride/Downloads/astro_modloader-0.1.14/astro_modloader)
error: couldn't read `/home/XXXXXX/Downloads/astro_modloader-0.1.14/target/release/build/astro_modloader-4f3bd2d22efef6b1/out/licenses.md`: No such file or directory (os error 2)
--> astro_modloader/src/main.rs:158:9
|
158 | include_str!(concat!(env!("OUT_DIR"), "/licenses.md"))
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= note: this error originates in the macro `include_str` (in Nightly builds, run with -Z macro-backtrace for more info)
error: could not compile `astro_modloader` (bin "astro_modloader") due to 1 previous error
I "fixed" it by manually adding an empty file with that name, but I'm guessing that's not the intended method ;)
Thanks so much for your hard work on this, by the way!
iirc you need to have cargo-about installed for it to generate the file automatically