gix integration breaks doc building #13923
Labels
A-git
Area: anything dealing with git
Command-doc
regression-from-stable-to-beta
Regression in beta that previously worked in stable.
S-accepted
Status: Issue or feature is accepted, and has a team member available to help mentor or review
S-blocked-external
Status: ❌ blocked on something out of the direct control of the Cargo project, e.g., upstream fix
to be honest, until I encountered this problem, I didn't know about
gix
, but it seems to cause problem when I build docs. below is the commands to reproduce this error:by grepping through the code base for the error messages and some experiments, I managed to pinpoint the failed code is at this line, where the
repo.walkdir_iter()
method returnsErr
:cargo/src/cargo/sources/path.rs
Line 519 in 8d68ed4
I did some investigation of the
gix
code, and it turns out my git config file contains a blank value forcore.excludesfile
which gix treats differently than a missingcore.excludesfile
entry.I opened an issue for gix GitoxideLabs/gitoxide#1370, but I want to at least mention it here, in case someone else enountered similar problem and want to search for reasons.
also, I'm not sure if this is considered a bug for gix or not, but at least it behaves differently from
libgit2
. when I browse the source code ofcargo
here:cargo/src/cargo/sources/path.rs
Lines 145 to 155 in 8d68ed4
I discovered this
__CARGO_GITOXIDE_DISABLE_LIST_FILES
environment variable )(undocumented anywhere) so I tried to set it, and thencargo doc
runs without showing any errors.The text was updated successfully, but these errors were encountered: