mirror of
https://github.com/NixOS/nix
synced 2025-06-25 10:41:16 +02:00
Fix missing output when creating lockfile
This commit is contained in:
parent
fa6bc33604
commit
1fd0867389
1 changed files with 2 additions and 2 deletions
|
@ -651,14 +651,14 @@ LockedFlake lockFlake(
|
||||||
|
|
||||||
bool lockFileExists = pathExists(outputLockFilePath);
|
bool lockFileExists = pathExists(outputLockFilePath);
|
||||||
|
|
||||||
if (lockFileExists) {
|
|
||||||
auto s = chomp(diff);
|
auto s = chomp(diff);
|
||||||
|
if (lockFileExists) {
|
||||||
if (s.empty())
|
if (s.empty())
|
||||||
warn("updating lock file '%s'", outputLockFilePath);
|
warn("updating lock file '%s'", outputLockFilePath);
|
||||||
else
|
else
|
||||||
warn("updating lock file '%s':\n%s", outputLockFilePath, s);
|
warn("updating lock file '%s':\n%s", outputLockFilePath, s);
|
||||||
} else
|
} else
|
||||||
warn("creating lock file '%s'", outputLockFilePath);
|
warn("creating lock file '%s': \n%s", outputLockFilePath, s);
|
||||||
|
|
||||||
std::optional<std::string> commitMessage = std::nullopt;
|
std::optional<std::string> commitMessage = std::nullopt;
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue