[bun upgrade] Fix version display name for canary build

This commit is contained in:
Jarred Sumner
2022-07-22 13:26:31 -07:00
parent 2a6acf3c90
commit 2dcd9e7eb9

View File

@@ -672,7 +672,40 @@ pub const UpgradeCommand = struct {
Output.printStartEnd(ctx.start_time, std.time.nanoTimestamp());
Output.prettyErrorln("<r> Upgraded.\n\n<b><green>Welcome to bun v{s}!<r>\n\n Report any bugs:\n https://github.com/oven-sh/bun/issues\n\n What's new:\n https://github.com/oven-sh/bun/releases/tag/{s}<r>", .{ version_name, version.tag });
if (use_canary) {
Output.prettyErrorln(
\\<r> Upgraded.
\\
\\
\\<b><green>Welcome to bun's latest canary build!<r>
\\
\\Report any bugs:
\\ https://github.com/oven-sh/bun/issues
\\
\\What's new:
\\ https://github.com/oven-sh/bun/releases/tag/{s}<r>
\\
,
.{version.tag},
);
} else {
Output.prettyErrorln(
\\<r> Upgraded.
\\
\\
\\<b><green>Welcome to bun v{s}!<r>
\\
\\Report any bugs:
\\ https://github.com/oven-sh/bun/issues
\\
\\What's new:
\\ https://github.com/oven-sh/bun/releases/tag/{s}<r>
\\
,
.{ version_name, version.tag },
);
}
Output.flush();
return;
}