Skip to content

Commit

Permalink
include zig git commit hash in app version when it exists
Browse files Browse the repository at this point in the history
  • Loading branch information
nektro committed Feb 1, 2022
1 parent 0570081 commit 4a54e44
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion src/main.zig
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@ pub fn main() !void {
const rev: []const string = if (git.rev_HEAD(alloc, std.fs.cwd()) catch null) |h| &.{ ".", h[0..9] } else &.{ "", "" };
const con: string = if (docker.amInside(alloc) catch false) ".docker" else "";
version = try std.fmt.allocPrint(alloc, "{s}{s}{s}{s}.zig{}", .{ options.version, rev[0], rev[1], con, builtin.zig_version });
version = version[0 .. std.mem.indexOfScalar(u8, version, '+') orelse version.len];
std.log.info("Starting {s} {s}", .{ name, version });

oauth2.providers.github.id = "github.com";
Expand Down

0 comments on commit 4a54e44

Please sign in to comment.