Skip to content

Commit 36712b6

Browse files
committed
build: don't check parent directories for git tag
1 parent caf8522 commit 36712b6

File tree

5 files changed

+5
-5
lines changed

5 files changed

+5
-5
lines changed

.gitattributes

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# SPDX-License-Identifier: CC0-1.0
2-
# SPDX-FileCopyrightText: 2024 Lee Cannon <leecannon@leecannon.xyz>
2+
# SPDX-FileCopyrightText: 2025 Lee Cannon <leecannon@leecannon.xyz>
33

44
*.zig text eol=lf
55
*.zon text eol=lf

.github/workflows/CI.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# SPDX-License-Identifier: CC0-1.0
2-
# SPDX-FileCopyrightText: 2024 Lee Cannon <leecannon@leecannon.xyz>
2+
# SPDX-FileCopyrightText: 2025 Lee Cannon <leecannon@leecannon.xyz>
33

44
name: CI
55

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# SPDX-License-Identifier: CC0-1.0
2-
# SPDX-FileCopyrightText: 2024 Lee Cannon <leecannon@leecannon.xyz>
2+
# SPDX-FileCopyrightText: 2025 Lee Cannon <leecannon@leecannon.xyz>
33

44
.zig-cache/
55
zig-out/

build.zig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ fn getVersionString(b: *std.Build, base_semantic_version: std.SemanticVersion, r
104104

105105
var exit_code: u8 = undefined;
106106
const raw_git_describe_output = b.runAllowFail(&[_][]const u8{
107-
"git", "-C", root_path, "describe", "--match", "*.*.*", "--tags", "--abbrev=9",
107+
"git", "-C", "--git-dir", ".git", root_path, "describe", "--match", "*.*.*", "--tags", "--abbrev=9",
108108
}, &exit_code, .Ignore) catch {
109109
return b.fmt("{s}-unknown", .{version_string});
110110
};

src/shared.zig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -211,7 +211,7 @@ pub fn readFileIntoBuffer(
211211
return buffer[0..read];
212212
}
213213

214-
pub const version_string = "{s} (zig-coreutils) " ++ options.version ++ "\nMIT License Copyright (c) 2021-2023 Lee Cannon\n";
214+
pub const version_string = "{s} (zig-coreutils) " ++ options.version ++ "\nMIT License Copyright (c) 2025 Lee Cannon\n";
215215

216216
pub fn ArgIterator(comptime T: type) type {
217217
return struct {

0 commit comments

Comments
 (0)