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:
parent
c179f668e5
commit
b4e367bf4a
|
@ -120,7 +120,7 @@ std::string FlakeRef::to_string() const
|
||||||
{
|
{
|
||||||
std::string string;
|
std::string string;
|
||||||
if (auto refData = std::get_if<FlakeRef::IsAlias>(&data))
|
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)) {
|
else if (auto refData = std::get_if<FlakeRef::IsGitHub>(&data)) {
|
||||||
assert(!ref || !rev);
|
assert(!ref || !rev);
|
||||||
|
|
Loading…
Reference in a new issue