[bun install] Fix bug that caused lockfile to appear as dirty in git when there were no real changes

This commit is contained in:
Jarred Sumner
2022-01-02 15:28:59 -08:00
parent ad0834bedb
commit a97dec5c30

View File

@@ -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;
}