Use fs::symlink_exists

This commit is contained in:
Eelco Dolstra
2025-01-20 16:33:52 +01:00
parent 2cb494f561
commit 8e05ddfd84

View File

@@ -783,7 +783,7 @@ LockedFlake lockFlake(
auto relPath = (topRef.subdir == "" ? "" : topRef.subdir + "/") + "flake.lock";
auto outputLockFilePath = *sourcePath / relPath;
bool lockFileExists = std::filesystem::exists(outputLockFilePath);
bool lockFileExists = fs::symlink_exists(outputLockFilePath);
auto s = chomp(diff);
if (lockFileExists) {