Skip to content

Commit 8e05ddf

Browse files
committed
Use fs::symlink_exists
1 parent 2cb494f commit 8e05ddf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/libflake/flake/flake.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -783,7 +783,7 @@ LockedFlake lockFlake(
783783
auto relPath = (topRef.subdir == "" ? "" : topRef.subdir + "/") + "flake.lock";
784784
auto outputLockFilePath = *sourcePath / relPath;
785785

786-
bool lockFileExists = std::filesystem::exists(outputLockFilePath);
786+
bool lockFileExists = fs::symlink_exists(outputLockFilePath);
787787

788788
auto s = chomp(diff);
789789
if (lockFileExists) {

0 commit comments

Comments
 (0)