-
Notifications
You must be signed in to change notification settings - Fork 312
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix the issue that tiup may choose yanked version if it's already installed #1191
Conversation
pkg/environment/env.go
Outdated
if err != nil { | ||
return "", err | ||
} | ||
|
||
errInstallFirst := errors.Annotatef(ErrInstallFirst, "use `tiup install %s` to install component `%s` first", component, component) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why not use ErrInstallFirst
here?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Because this error will be displayed to the user
Co-authored-by: Allen Zhong <allen@moe.cat>
/lgtm /merge |
@AstroProfundis: In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the ti-community-infra/tichi repository. |
[REVIEW NOTIFICATION] This pull request has been approved by:
To complete the pull request process, please ask the reviewers in the list to review by filling The full list of commands accepted by this bot can be found here. Reviewer can indicate their review by writing |
/merge |
This pull request has been accepted and is ready to merge. Commit hash: a6dfcb9
|
Codecov Report
@@ Coverage Diff @@
## master #1191 +/- ##
==========================================
- Coverage 53.48% 47.17% -6.31%
==========================================
Files 288 254 -34
Lines 20529 17648 -2881
==========================================
- Hits 10979 8325 -2654
- Misses 7841 7962 +121
+ Partials 1709 1361 -348
Flags with carried forward coverage won't be shown. Click here to find out more.
Continue to review full report at Codecov.
|
/hold |
/unhold /merge |
This pull request has been accepted and is ready to merge. Commit hash: da800f9
|
What problem does this PR solve?
What is changed and how it works?
Check List
Tests
Code changes
Side effects
Related changes
Release notes: