diff --git a/pkg/repository/clone_mirror.go b/pkg/repository/clone_mirror.go index f1fd09ad5f..6b06f9623b 100644 --- a/pkg/repository/clone_mirror.go +++ b/pkg/repository/clone_mirror.go @@ -300,7 +300,8 @@ func cloneComponents(repo *V1Repository, continue } } - if versionItem.Yanked { + if _, err := repo.FetchComponentManifest(name, false); err != nil || versionItem.Yanked { + // The component or the version is yanked, skip download binary continue } if err := download(targetDir, tmpDir, repo, &versionItem); err != nil {