Skip to content

Commit

Permalink
fix tiup cannot update itself when tiup comonent exist (#2443)
Browse files Browse the repository at this point in the history
Co-authored-by: nexustar <inexustar@gmail.com>
Co-authored-by: ti-chi-bot[bot] <108142056+ti-chi-bot[bot]@users.noreply.github.com>
  • Loading branch information
3 people committed Jul 24, 2024
1 parent c3b91fe commit 156054e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/repository/v1_repository.go
Original file line number Diff line number Diff line change
Expand Up @@ -691,7 +691,7 @@ func (r *V1Repository) DownloadTiUP(targetDir string) error {
TargetDir: targetDir,
ID: TiUPBinaryName,
Version: "",
Force: false,
Force: true,
}
return r.UpdateComponents([]ComponentSpec{spec})
}
Expand Down

0 comments on commit 156054e

Please sign in to comment.