mirror of
https://github.com/oven-sh/bun
synced 2026-02-16 13:51:47 +00:00
[bun upgrade] Fix version display name for canary build
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user