1
0
Fork 0
mirror of https://github.com/NixOS/nix synced 2024-09-19 23:03:53 -04:00

Fix missing output when creating lockfile

This commit is contained in:
Felix Uhl 2023-08-11 21:47:16 +02:00 committed by Théophane Hufschmitt
parent fa6bc33604
commit 1fd0867389

View file

@ -651,14 +651,14 @@ LockedFlake lockFlake(
bool lockFileExists = pathExists(outputLockFilePath);
auto s = chomp(diff);
if (lockFileExists) {
auto s = chomp(diff);
if (s.empty())
warn("updating lock file '%s'", outputLockFilePath);
else
warn("updating lock file '%s':\n%s", outputLockFilePath, s);
} else
warn("creating lock file '%s'", outputLockFilePath);
warn("creating lock file '%s': \n%s", outputLockFilePath, s);
std::optional<std::string> commitMessage = std::nullopt;