Skip to content

Commit

Permalink
vm: fix package dependency install fallback option (#861)
Browse files Browse the repository at this point in the history
  • Loading branch information
abiosoft authored Nov 14, 2023
1 parent 22d7e5f commit 5c68fa0
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions environment/vm/lima/dependencies.go
Original file line number Diff line number Diff line change
Expand Up @@ -79,9 +79,9 @@ func (l *limaVM) installDependencies(log *logrus.Entry, conf config.Config) erro
// cache dependencies
dir, err := l.cacheDependencies(log, conf)
if err != nil {
log.Warnln("error caching dependencies: %w", err)
log.Warnln("falling back to normal package install", err)
return l.Run("sudo apt install -y " + strings.Join(dependencyPackages, " "))
log.Warnln(fmt.Errorf("error caching dependencies: %w", err))
log.Warnln("falling back to normal package install")
return l.Run("sh", "-c", "sudo apt install -y "+strings.Join(dependencyPackages, " "))
}

// validate if packages were previously installed
Expand Down

0 comments on commit 5c68fa0

Please sign in to comment.