mirror of
https://github.com/oven-sh/bun
synced 2026-02-09 10:28:47 +00:00
[bun install] Fix bug that caused lockfile to appear as dirty in git when there were no real changes
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user