Perl-Toolchain-Gang / ExtUtils-MakeMaker

Perl module to make Makefiles and build modules (what backs Makefile.PL)
https://metacpan.org/release/ExtUtils-MakeMaker
65 stars 77 forks source link

Cygwin ci failure "fatal: detected dubious ownership in repository" #428

Closed demerphq closed 1 year ago

demerphq commented 1 year ago

There seems to be an issue with the cygwin CI pipeline tests.

See: https://github.com/Perl-Toolchain-Gang/ExtUtils-MakeMaker/actions/runs/4149341727/jobs/7178212414

Run path c:\tools\cygwin\bin;c:\tools\cygwin\usr\bin
error: could not lock config file /home/runneradmin/.gitconfig: No such file or directory
fatal: detected dubious ownership in repository at '/cygdrive/d/a/ExtUtils-MakeMaker/ExtUtils-MakeMaker'
To add an exception for this directory, call:

    git config --global --add safe.directory /cygdrive/d/a/ExtUtils-MakeMaker/ExtUtils-MakeMaker
Leont commented 1 year ago

Yeah, this has been broken for a while now. The solution isn't obvious to me either.

demerphq commented 1 year ago

Can we not just do what they suggest and add

git config --global --add safe.directory /cygdrive/d/a/ExtUtils-MakeMaker/ExtUtils-MakeMaker

to the setup recipe?

demerphq commented 1 year ago

I guess not. See https://github.com/Perl-Toolchain-Gang/ExtUtils-MakeMaker/pull/429

I tried setting it up very early. But nope, no joy.

perlpunk commented 1 year ago

I tried git config --system and this works, see #430 (successful run in my fork: https://github.com/perlpunk/ExtUtils-MakeMaker/actions/runs/4156609621/jobs/7190513323 )