1
1
Fork 0
mirror of https://github.com/NixOS/nix.git synced 2025-11-08 19:46:02 +01:00

Merge pull request #13873 from xokdvium/fix-mingw

libfetchers: Fix mingw build
This commit is contained in:
John Ericson 2025-08-29 19:56:20 -04:00 committed by GitHub
commit 401e7fe3ad
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -120,7 +120,7 @@ static DownloadTarballResult downloadTarball_(
throw Error("tarball '%s' does not exist.", localPath);
}
if (is_directory(localPath)) {
if (std::filesystem::exists(localPath + "/.git")) {
if (exists(localPath / ".git")) {
throw Error(
"tarball '%s' is a git repository, not a tarball. Please use `git+file` as the scheme.", localPath);
}