Skip to content
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion updater/apply_darwin.go
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,11 @@ func apply(targetPath string, current releaser.Version, client *releaser.Client,

// Remove old app
slog.Info("Removing old app", "to", oldAppPath)
_ = oldAppPath.RemoveAll()
err = oldAppPath.RemoveAll()
// TODO: added only to debug why it is not able to remove the old app, remove later
if err != nil {
return "", fmt.Errorf("could not remove old app: %w", err)
}

slog.Info("Returning updated app", "path", currentAppPath)

Expand Down