FlakeRef::to_string(): Drop the "flake:" prefix

This is unnecessary in most contexts and makes 'nix flake list' output
less readable.
This commit is contained in:
Eelco Dolstra 2019-04-15 14:13:10 +02:00
parent c179f668e5
commit b4e367bf4a

View file

@ -120,7 +120,7 @@ std::string FlakeRef::to_string() const
{
std::string string;
if (auto refData = std::get_if<FlakeRef::IsAlias>(&data))
string = "flake:" + refData->alias;
string = refData->alias;
else if (auto refData = std::get_if<FlakeRef::IsGitHub>(&data)) {
assert(!ref || !rev);