-
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
Clone with yanked version #602
Conversation
Signed-off-by: lucklove <gnu.crazier@gmail.com>
Codecov Report
@@ Coverage Diff @@
## master #602 +/- ##
==========================================
- Coverage 50.95% 50.94% -0.02%
==========================================
Files 219 219
Lines 15951 15970 +19
==========================================
+ Hits 8128 8136 +8
- Misses 6684 6687 +3
- Partials 1139 1147 +8
Continue to review full report at Codecov.
|
} | ||
|
||
// VersionList return all versions exclude yanked versions | ||
func (manifest *Component) VersionList(platform string) map[string]VersionItem { |
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.
I think public methods should well-tested.
This PR lack of testing. |
At this time,
tiup mirror clone <dir> <version>
will clone component manifest only contains .If we deployed a cluster with an early version, some commands may fail since we can't find the entry in the manifest.
This PR will clone the component manifest with all versions, the versions besides the target version will be set as
yanked