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 91902da
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
6 changes: 4 additions & 2 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ $ wget https://apt.llvm.org/llvm.sh -O - | sudo bash -s -- 18 all
```

```bash#Arch
$ sudo pacman -S llvm clang lld
$ sudo pacman -S llvm clang-18 lld
```

```bash#Fedora
Expand All @@ -86,6 +86,8 @@ Make sure Clang/LLVM 18 is in your path:

```bash
$ which clang-18
# if no clang-18, verify clang version instead
$ clang --version
```

If not, run this to manually add it:
Expand All @@ -100,7 +102,7 @@ $ export PATH="$(brew --prefix llvm@18)/bin:$PATH"

```bash#Arch
# use fish_add_path if you're using fish
$ export PATH="$PATH:/usr/lib/llvm18/bin"
$ export PATH="/usr/lib/llvm18/bin:$PATH"
```

{% /codetabs %}
Expand Down
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 91902da

Please sign in to comment.