1
0
Fork 0
mirror of https://github.com/NixOS/nix synced 2025-07-06 13:21:47 +02:00

Resolve conflicts

This commit is contained in:
Eelco Dolstra 2024-12-06 12:13:51 +01:00 committed by GitHub
parent 0a2545b23a
commit a5ee9a3e99
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -184,14 +184,9 @@ struct CmdToBase : Command
void run() override
{
<<<<<<< HEAD
warn("The old format conversion sub commands of `nix hash` were deprecated in favor of `nix hash convert`.");
for (auto s : args)
=======
if (!legacyCli)
warn("The old format conversion subcommands of `nix hash` were deprecated in favor of `nix hash convert`.");
for (const auto & s : args)
>>>>>>> 408c2faf9 (nix hash: Don't print 'nix hash' deprecation message)
logger->cout(Hash::parseAny(s, hashAlgo).to_string(hashFormat, hashFormat == HashFormat::SRI));
}
};