Skip to content

Commit f5c71f6

Browse files
authored
[packages] fix error check in pendingPackagesForInstallation (#1052)
## Summary The if-condition was ignoring genuine errors ## How was it tested? ``` > rm -rf <project>/.devbox > cd <project> # has direnv-enabled, and so this installed the packages that were pending ```
1 parent e6f3de2 commit f5c71f6

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

internal/impl/packages.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -335,6 +335,9 @@ func (d *Devbox) pendingPackagesForInstallation(ctx context.Context) ([]string,
335335
ProfileDir: profileDir,
336336
})
337337
if err != nil {
338+
if !errors.Is(err, nix.ErrPackageNotFound) {
339+
return nil, err
340+
}
338341
pending = append(pending, input.Raw)
339342
}
340343
}

0 commit comments

Comments
 (0)