git_test.go's tests fail if git has no global user.email and user.name config set #8924
Labels
area/testing
kind/engineering
Work that is not visible to an external user
resolution/fixed
This issue was fixed
Hello!
Issue details
I'm building pulumi on my Fedora Silverblue laptop in a toolbox container and getting test failures in
sdk/go/common/util/gitutil/git_test.go
. It would probably make sense to setuser.name
anduser.email
locally in the test repo. Something else I've found fixing this, the tests make the assumption that git usesmaster
as default init branch, which with recent git versions is no more the case, in fact the new default ismain
.error log:
Steps to reproduce
make
from the repo rootExpected: successful build
Actual: gitutil/git tests fail because they rely on local configuration that is not available
The text was updated successfully, but these errors were encountered: