diff options
author | 2022-03-04 00:20:22 -0800 | |
---|---|---|
committer | 2022-03-04 00:20:22 -0800 | |
commit | 51fbbea1d3dc2b610fe5fe525229e56b581e5c8a (patch) | |
tree | c75e063c4eb7c99737fbf7a5a2014f9546e2e218 /src/bundler.zig | |
parent | 696710fd7aedee6054947aab002aaa853e9ee731 (diff) | |
download | bun-jarred/upgrade-zig-2.tar.gz bun-jarred/upgrade-zig-2.tar.zst bun-jarred/upgrade-zig-2.zip |
upgrade zigjarred/upgrade-zig-2
Diffstat (limited to 'src/bundler.zig')
-rw-r--r-- | src/bundler.zig | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/bundler.zig b/src/bundler.zig index 5791201d3..437dd3c9d 100644 --- a/src/bundler.zig +++ b/src/bundler.zig @@ -2976,7 +2976,7 @@ pub const Bundler = struct { }, else => { var abs_path = path.text; - const file = try std.fs.openFileAbsolute(abs_path, .{ .read = true }); + const file = try std.fs.openFileAbsolute(abs_path, .{ .mode = .read_only }); var stat = try file.stat(); return ServeResult{ .file = options.OutputFile.initFile(file, abs_path, stat.size), @@ -3360,7 +3360,7 @@ pub const Transformer = struct { var _log = logger.Log.init(allocator); const absolutePath = resolve_path.joinAbs(transformer.cwd, .auto, entry_point); - const file = try std.fs.openFileAbsolute(absolutePath, std.fs.File.OpenFlags{ .read = true }); + const file = try std.fs.openFileAbsolute(absolutePath, std.fs.File.OpenFlags{ .mode = .read_only }); defer { if (care_about_closing_files) { file.close(); |