diff options
author | 2021-09-14 13:23:51 -0700 | |
---|---|---|
committer | 2021-09-14 13:23:51 -0700 | |
commit | 24522f7d743140a8f8be11eac4c2c3458a3fb937 (patch) | |
tree | 826751f573da20a2206ed7ab9ab8c0e425b4df13 /src | |
parent | 4173b03f546d48b15ad900367a21e82a01802858 (diff) | |
download | bun-24522f7d743140a8f8be11eac4c2c3458a3fb937.tar.gz bun-24522f7d743140a8f8be11eac4c2c3458a3fb937.tar.zst bun-24522f7d743140a8f8be11eac4c2c3458a3fb937.zip |
Include build id in welcome notebun-v0.0.0-9bun-v0.0.0-8bun-v0.0.0-10
Diffstat (limited to 'src')
-rw-r--r-- | src/global.zig | 2 | ||||
-rw-r--r-- | src/http.zig | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/global.zig b/src/global.zig index 55ffbc55b..5871d3ba3 100644 --- a/src/global.zig +++ b/src/global.zig @@ -384,7 +384,7 @@ pub const Output = struct { }; pub const Global = struct { - pub const build_id = std.fmt.parseInt(u64, @embedFile("../build-id"), 10) catch unreachable; + pub const build_id = std.fmt.parseInt(u64, std.mem.trim(u8, @embedFile("../build-id"), "\n \r\t"), 10) catch unreachable; pub fn panic(comptime fmt: string, args: anytype) noreturn { @setCold(true); diff --git a/src/http.zig b/src/http.zig index b6a14357b..40e828245 100644 --- a/src/http.zig +++ b/src/http.zig @@ -2553,7 +2553,7 @@ pub const Server = struct { } } else { if (server.bundler.options.routes.single_page_app_routing) { - Output.prettyError(" Bun!!<r>\n\n\n<d> Link:<r> <b><cyan>http://{s}<r>\n <d>./{s}/index.html<r> \n\n\n", .{ + Output.prettyError(" Bun!! <d>build {d}<r>\n\n\n<d> Link:<r> <b><cyan>http://{s}<r>\n <d>./{s}/index.html<r> \n\n\n", .{ Global.build_id, addr, resolve_path.relative(server.bundler.fs.top_level_dir, server.bundler.options.routes.static_dir), |