coreutils
coreutils copied to clipboard
libstdbuf: output filename collision
$ cargo test --workspace
warning: output filename collision.
The lib target `libstdbuf` in package `uu_stdbuf_libstdbuf v0.0.30 (/home/drinkcat/dev/coreutils/coreutils/src/uu/stdbuf/src/libstdbuf)` has the same output filename as the lib target `libstdbuf` in package `uu_stdbuf_libstdbuf v0.0.30 (/home/drinkcat/dev/coreutils/coreutils/src/uu/stdbuf/src/libstdbuf)`.
Colliding filename is: /home/drinkcat/dev/coreutils/coreutils/target/debug/deps/liblibstdbuf.so
The targets should have unique names.
Consider changing their names to be unique or compiling them separately.
This may become a hard error in the future; see <https://github.com/rust-lang/cargo/issues/6313>.
Sounds like we should rename our library target.
Nah, we're just colliding with ourselves:
The lib target `libstdbuf` in package `uu_stdbuf_libstdbuf v0.0.30 (/home/drinkcat/dev/coreutils/coreutils/src/uu/stdbuf/src/libstdbuf)` has the same output filename as
the lib target `libstdbuf` in package `uu_stdbuf_libstdbuf v0.0.30 (/home/drinkcat/dev/coreutils/coreutils/src/uu/stdbuf/src/libstdbuf)`.
See https://github.com/rust-lang/cargo/issues/6313 .
In particular this comment: https://github.com/rust-lang/cargo/issues/6313#issuecomment-1170307703 seems to be similar.
I guess we can just ignore this until it becomes an actual error.
This is fixed by 35634b46a0acfc9028743bf023c133a4d0135f13 and should be closed.