Skip to content

Commit

Permalink
fix: don't save lockfile if --frozen-lockfile
Browse files Browse the repository at this point in the history
  • Loading branch information
pikdum committed Feb 20, 2025
1 parent 6e45e3b commit 721a23f
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/install/install.zig
Original file line number Diff line number Diff line change
Expand Up @@ -15439,6 +15439,9 @@ pub const PackageManager = struct {
packages_len_before_install: usize,
log_level: Options.LogLevel,
) OOM!void {
if (!this.options.do.save_lockfile) {
return;
}
if (this.lockfile.isEmpty()) {
if (!this.options.dry_run) delete: {
const delete_format = switch (load_result.*) {
Expand Down

0 comments on commit 721a23f

Please sign in to comment.