diff options
author | 2023-01-25 01:09:05 -0800 | |
---|---|---|
committer | 2023-01-25 01:09:05 -0800 | |
commit | ed2a57fcc965befe4d99a0994febc600b997f10c (patch) | |
tree | a1bf20f4445c0f85c57f765e265845d56abc6476 /src | |
parent | 81b6878e1a96487b4ae9020eb9f53bce0b2995c6 (diff) | |
download | bun-ed2a57fcc965befe4d99a0994febc600b997f10c.tar.gz bun-ed2a57fcc965befe4d99a0994febc600b997f10c.tar.zst bun-ed2a57fcc965befe4d99a0994febc600b997f10c.zip |
Add log
Diffstat (limited to 'src')
-rw-r--r-- | src/install/lockfile.zig | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/install/lockfile.zig b/src/install/lockfile.zig index 6690e1d3f..273aec901 100644 --- a/src/install/lockfile.zig +++ b/src/install/lockfile.zig @@ -1883,6 +1883,8 @@ pub const Package = extern struct { } }; + const debug = Output.scoped(.Lockfile, true); + pub fn clone( this_: *const Lockfile.Package, old: *Lockfile, @@ -1895,6 +1897,7 @@ pub const Package = extern struct { const old_extern_string_buf = old.buffers.extern_strings.items; var builder_ = new.stringBuilder(); var builder = &builder_; + debug("Clone: {s}@{any} ({s}, {d} dependencies)", .{ this.name.slice(old_string_buf), this.resolution.fmt(old_string_buf), @tagName(this.resolution.tag), this.dependencies.len }); builder.count(this.name.slice(old_string_buf)); this.resolution.count(old_string_buf, *Lockfile.StringBuilder, builder); |