diff options
author | 2022-01-02 15:28:59 -0800 | |
---|---|---|
committer | 2022-01-02 15:28:59 -0800 | |
commit | a97dec5c30857bf5e82ca64452bdb7205bc7e37e (patch) | |
tree | 67406e6ed3d6adf0660716f6ec64d78ddad03e94 /src | |
parent | ad0834bedb6aecf0545ecf707f6d98a8cb7cd942 (diff) | |
download | bun-a97dec5c30857bf5e82ca64452bdb7205bc7e37e.tar.gz bun-a97dec5c30857bf5e82ca64452bdb7205bc7e37e.tar.zst bun-a97dec5c30857bf5e82ca64452bdb7205bc7e37e.zip |
[bun install] Fix bug that caused lockfile to appear as dirty in git when there were no real changes
Diffstat (limited to 'src')
-rw-r--r-- | src/install/install.zig | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/install/install.zig b/src/install/install.zig index e52a6646a..5f8beb5f8 100644 --- a/src/install/install.zig +++ b/src/install/install.zig @@ -2455,6 +2455,10 @@ pub const Lockfile = struct { var new = this.*; new.id = invalid_package_id; new.man_dir = builder.append(String, this.man_dir.slice(buf)); + // zero out this field + // it should really not exist in this data type at all, but not sure where to put it + // we waste 1 byte per package doing this! + new.preinstall_state = .unknown; return new; } |