Fix test_rlib_dep_reader_call failure edge case#2298
Conversation
|
would it be possible to add a test here to make sure we don't regress? |
|
@sylvestre I can't think of how to test this in sccache. It seems to occur when The fact that the test isn't failing in CI or for other devs sounds like a possible bug in |
|
I guess one way would be to run all |
|
ok, thanks |
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #2298 +/- ##
==========================================
- Coverage 30.91% 0 -30.92%
==========================================
Files 53 0 -53
Lines 20112 0 -20112
Branches 9755 0 -9755
==========================================
- Hits 6217 0 -6217
+ Misses 7922 0 -7922
+ Partials 5973 0 -5973 ☔ View full report in Codecov by Sentry. |
This PR fixes a failure in the
test_rlib_dep_reader_calltest when$CARGO_HOMEisn't in the user's$HOME.I develop in a container based on
messense/rust-musl-cross:x86_64-musl. The$CARGO_HOMEdir is at/root/.cargo, and I create a non-root user and mount in thesccachesource.For some reason,
rustcfails when run with an empty env fails (like in the test):However, defining the
RUSTUP_HOMEenvvar succeeds: