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

 

01 Oct, 2024 04:27 PM
26 Sep, 2024 03:49 PM
26 Sep, 2024 09:02 AM
25 Sep, 2024 07:07 PM
24 Sep, 2024 08:39 PM
24 Sep, 2024 06:47 AM