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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user