PR Build Error 'error: could not lock config file'...

Matt's Avatar

Matt

06 Apr, 2021 04:05 PM

I'm having an issue with building specifically pull requests:

Build started
error: could not lock config file %HOMEDRIVE%%HOMEPATH%/.gitconfig: No such file or directory
Command exited with code 255
Build failed

Building normal commits work without any issues. I verified the .gitconfig file exists for the proper user, permissions are correct and there is no lock file. This started after upgrading git from 2.28.0 to 2.31.1. I uninstalled and downgraded back to 2.28.0 but still having the issue. It's odd since normal commits are building without any issue. Is there any difference on how PRs are built?

  1. 1 Posted by Matt on 06 Apr, 2021 05:15 PM

    Matt's Avatar

    Update: It's working.

    I created a new user profile and set the host service to logon with that account and it's now working. Still not sure why normal commits worked but not PRs.

Reply to this discussion

Internal reply

Formatting help / Preview (switch to plain text) No formatting (switch to Markdown)

Attaching KB article:

»

Attached Files

You can attach files up to 10MB

If you don't have an account yet, we need to confirm you're human and not a machine trying to post spam.

Keyboard shortcuts

Generic

? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac

 

27 Apr, 2021 12:06 AM
26 Apr, 2021 05:03 PM
26 Apr, 2021 06:21 AM
21 Apr, 2021 02:52 AM
21 Apr, 2021 02:43 AM
18 Apr, 2021 08:10 PM