Skip to content

Commit 7a0cbb1

Browse files
author
drglove
committed
Use std.Build.LazyPath over now removed std.Build.FileSource.
See corresponding ziglang change here: ziglang/zig#16353
1 parent 528a864 commit 7a0cbb1

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

test/tests.zig

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ const mem = std.mem;
99
const Allocator = std.mem.Allocator;
1010
const Child = std.process.Child;
1111
const Build = std.Build;
12-
const FileSource = std.Build.FileSource;
12+
const LazyPath = std.Build.LazyPath;
1313
const Reader = fs.File.Reader;
1414
const RunStep = std.Build.RunStep;
1515
const Step = Build.Step;
@@ -132,9 +132,9 @@ fn createCase(b: *Build, name: []const u8) *Step {
132132
const CheckNamedStep = struct {
133133
step: Step,
134134
exercise: Exercise,
135-
stderr: FileSource,
135+
stderr: LazyPath,
136136

137-
pub fn create(owner: *Build, exercise: Exercise, stderr: FileSource) *CheckNamedStep {
137+
pub fn create(owner: *Build, exercise: Exercise, stderr: LazyPath) *CheckNamedStep {
138138
const self = owner.allocator.create(CheckNamedStep) catch @panic("OOM");
139139
self.* = .{
140140
.step = Step.init(.{
@@ -180,12 +180,12 @@ const CheckNamedStep = struct {
180180
const CheckStep = struct {
181181
step: Step,
182182
exercises: []const Exercise,
183-
stderr: FileSource,
183+
stderr: LazyPath,
184184

185185
pub fn create(
186186
owner: *Build,
187187
exercises: []const Exercise,
188-
stderr: FileSource,
188+
stderr: LazyPath,
189189
) *CheckStep {
190190
const self = owner.allocator.create(CheckStep) catch @panic("OOM");
191191
self.* = .{

0 commit comments

Comments
 (0)