Skip to content

Commit

Permalink
build: add missing fmt call on zls_version
Browse files Browse the repository at this point in the history
  • Loading branch information
Techatrix committed Jun 9, 2024
1 parent 37fb7b7 commit 44f870f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion build.zig
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ pub fn build(b: *Build) !void {
gen_step.dependOn(&gen_cmd.step);

const gen_version_data_cmd = b.addRunArtifact(gen_exe);
const resolved_data_version = data_version orelse if (zls_version.pre == null and zls_version.build == null) zls_version else "master";
const resolved_data_version = data_version orelse if (zls_version.pre == null and zls_version.build == null) b.fmt("{}", .{zls_version}) else "master";
gen_version_data_cmd.addArgs(&.{ "--generate-version-data", resolved_data_version });
if (data_version_path) |path| {
gen_version_data_cmd.addArg("--langref_path");
Expand Down

0 comments on commit 44f870f

Please sign in to comment.