diff --git a/cmd/mirror.go b/cmd/mirror.go index a0a7f6e6df..52cea62c34 100644 --- a/cmd/mirror.go +++ b/cmd/mirror.go @@ -792,12 +792,14 @@ func newMirrorCloneCmd() *cobra.Command { } if index != nil && len(index.Components) > 0 { - for name := range index.Components { + for name, comp := range index.Components { + if comp.Yanked { + continue + } components = append(components, name) } } sort.Strings(components) - for _, name := range components { options.Components[name] = new([]string) cmd.Flags().StringSliceVar(options.Components[name], name, nil, "Specify the versions for component "+name)