Closed dbcfd closed 2 years ago
This was actually due to the CI environment and a hidden directory, having files on git ls-files. Not sure how to marry this up with the git status output.
Even with these files in .gitignore, they still show up as uncomitted.
Here are the checks that we perform https://github.com/sunng87/cargo-release/blob/master/src/git.rs#L10
Yeah, I've been trying to figure out how resolve the output from those commands with what the environment has. The path it tells me is causing what is dirty (I forked and added debugging) doesn't seem to exist, so something is possibly going on with the command and the filesystem interaction.
Downgrading to 0.12.4 fixes the issue. Going to do a PR to make dirty via untracked optional.
I ran into this issue today as well it seems
Downgrading did not work for me, so is probably another issue
We're adding logging so we can at least tell what is causing cargo-release to think things are dirty
Are you using submodules? That seems to be the cause in #416
Seeing this on AWS Codebuild running windows using a codestar connection. The list contains all files in the repo with status WT_DELETED
.
I suspect this is related to: git config --global core.autocrlf false
Git status also indicates a clean working directory. Not sure what it is error'ing on.