aboutsummaryrefslogtreecommitdiff
path: root/src/install/lockfile.zig
diff options
context:
space:
mode:
Diffstat (limited to 'src/install/lockfile.zig')
-rw-r--r--src/install/lockfile.zig2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/install/lockfile.zig b/src/install/lockfile.zig
index e4f9bda78..382f759da 100644
--- a/src/install/lockfile.zig
+++ b/src/install/lockfile.zig
@@ -136,7 +136,7 @@ pub fn loadFromDisk(this: *Lockfile, allocator: std.mem.Allocator, log: *logger.
var file = std.io.getStdIn();
if (filename.len > 0)
- file = std.fs.cwd().openFileZ(filename, .{ .read = true }) catch |err| {
+ file = std.fs.cwd().openFileZ(filename, .{ .mode = .read_only }) catch |err| {
return switch (err) {
error.FileNotFound, error.AccessDenied, error.BadPathName => LoadFromDiskResult{ .not_found = .{} },
else => LoadFromDiskResult{ .err = .{ .step = .open_file, .value = err } },