aboutsummaryrefslogtreecommitdiff
path: root/lib/std/Build/Step/WriteFile.zig
diff options
context:
space:
mode:
authorAndrew Kelley <andrew@ziglang.org>2025-12-06 17:52:57 -0800
committerAndrew Kelley <andrew@ziglang.org>2025-12-23 22:15:08 -0800
commit8328de24f13e21e325207b19288a143854df50df (patch)
treeef7c9c46f969e31258a4c052c85f5a9ecfc34b80 /lib/std/Build/Step/WriteFile.zig
parentdd1d15b72aa3bae4b38e2337609758ffb7a7b55a (diff)
downloadzig-8328de24f13e21e325207b19288a143854df50df.tar.gz
zig-8328de24f13e21e325207b19288a143854df50df.zip
update all occurrences of openFile to receive an io instance
Diffstat (limited to 'lib/std/Build/Step/WriteFile.zig')
-rw-r--r--lib/std/Build/Step/WriteFile.zig6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/std/Build/Step/WriteFile.zig b/lib/std/Build/Step/WriteFile.zig
index 201b132271..2834f18564 100644
--- a/lib/std/Build/Step/WriteFile.zig
+++ b/lib/std/Build/Step/WriteFile.zig
@@ -284,7 +284,7 @@ fn make(step: *Step, options: Step.MakeOptions) !void {
},
.copy => |file_source| {
const source_path = file_source.getPath2(b, step);
- const prev_status = Io.Dir.updateFile(.cwd(), io, source_path, cache_dir.adaptToNewApi(), file.sub_path, .{}) catch |err| {
+ const prev_status = Io.Dir.updateFile(.cwd(), io, source_path, cache_dir, file.sub_path, .{}) catch |err| {
return step.fail("unable to update file from '{s}' to '{f}{s}{c}{s}': {t}", .{
source_path, b.cache_root, cache_path, fs.path.sep, file.sub_path, err,
});
@@ -321,10 +321,10 @@ fn make(step: *Step, options: Step.MakeOptions) !void {
.directory => try cache_dir.makePath(dest_path),
.file => {
const prev_status = Io.Dir.updateFile(
- src_entry_path.root_dir.handle.adaptToNewApi(),
+ src_entry_path.root_dir.handle,
io,
src_entry_path.sub_path,
- cache_dir.adaptToNewApi(),
+ cache_dir,
dest_path,
.{},
) catch |err| {