Building from source hangs with "Checking dependencies..."

image

I cloned the release branch of Unreal Engine (version 5.1) and ran Setup.bat, but it’s been hanging on “Checking dependencies…” for over an hour. I’m not even reaching the “Updating dependencies” phase. I tried running GitDependencies.exe manually and it had the same issue, even after trying --force and --no-cache. My disk light is solid while this is happening but disk utilization is low, which leads me to believe there’s some sort of file lock issue. Any solutions?

I’m not entirely sure, but I believe the issue had to do with some strange Git configuration. I deleted the entire UnrealEngine directory and re-cloned only what I needed rather than the full repository:

git clone --depth 1 https://github.com/EpicGames/UnrealEngine.git -b release

Now Setup.bat is working fine.