bazelbuild / rules_rust

Rust rules for Bazel
https://bazelbuild.github.io/rules_rust/
Apache License 2.0
656 stars 419 forks source link

Error on absolute src paths #2853

Closed illicitonion closed 2 weeks ago

illicitonion commented 2 weeks ago

These lead to non-deterministic lockfile contents because they depend on the depth of the directory the repo is checked out into.

This may possibly introduce false positives because of hard-coded /dev/null or similar in actual published crates - hopefully it doesn't (ideally people aren't publishing this kind of thing to crates.io), but if it does, we can loosen those to a warning or add a per-crate opt-out or something.