Merge pull request #3 from digitalocean/awg/catalog-no-layers

catalog: List repositories with no unique layers
This commit is contained in:
Adam Wolfe Gordon 2020-06-02 16:46:22 -06:00 committed by GitHub
commit f8c65fc7c5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -143,8 +143,8 @@ func handleRepository(fileInfo driver.FileInfo, root, last string, fn func(repoP
repo := filePath[len(root)+1:]
_, file := path.Split(repo)
if file == "_layers" {
repo = strings.TrimSuffix(repo, "/_layers")
if file == "_manifests" {
repo = strings.TrimSuffix(repo, "/_manifests")
if lessPath(last, repo) {
if err := fn(repo); err != nil {
return err