-
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
Support yank a single version on client side #605
Conversation
Codecov Report
@@ Coverage Diff @@
## master #605 +/- ##
==========================================
+ Coverage 50.73% 51.22% +0.49%
==========================================
Files 220 225 +5
Lines 16102 16573 +471
==========================================
+ Hits 8169 8490 +321
- Misses 6787 6899 +112
- Partials 1146 1184 +38
Flags with carried forward coverage won't be shown. Click here to find out more.
Continue to review full report at Codecov.
|
The yanked version handle has been complete in #602 |
cmd/mirror.go
Outdated
@@ -253,15 +254,22 @@ func newMirrorModifyCmd() *cobra.Command { | |||
return err | |||
} | |||
|
|||
m, err := env.V1Repository().FetchComponentManifest(args[0]) | |||
spec := strings.Split(args[0], ":") |
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.
Please use ParseComponentVersion
function.
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.
Rest LGTM
Please add some tests, include #602
Signed-off-by: lucklove <gnu.crazier@gmail.com>
Signed-off-by: lucklove <gnu.crazier@gmail.com>
Signed-off-by: lucklove <gnu.crazier@gmail.com>
Signed-off-by: lucklove <gnu.crazier@gmail.com>
At this time tiup only supports yank a whole component (include all versions).
In some scenes, we should yank a single version (for example, we push a wrong version).
This PR makes it possible to yank a single version.