mirror of
https://github.com/NixOS/nix
synced 2025-07-03 02:01:48 +02:00
getSourcePath(): Return std::filesystem::path
This commit is contained in:
parent
9003343b53
commit
f5548c17ed
7 changed files with 11 additions and 16 deletions
|
@ -781,7 +781,7 @@ LockedFlake lockFlake(
|
|||
writeFile(*lockFlags.outputLockFilePath, newLockFileS);
|
||||
} else {
|
||||
auto relPath = (topRef.subdir == "" ? "" : topRef.subdir + "/") + "flake.lock";
|
||||
auto outputLockFilePath = *sourcePath + "/" + relPath;
|
||||
auto outputLockFilePath = *sourcePath / relPath;
|
||||
|
||||
bool lockFileExists = pathExists(outputLockFilePath);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue