fix build when pulling from non-default registry

Signed-off-by: Avi Deitcher <avi@deitcher.net>
This commit is contained in:
Avi Deitcher
2025-09-25 12:08:37 +03:00
committed by Avi Deitcher
parent 4c81a1408b
commit a8cf7dabec

View File

@@ -291,7 +291,7 @@ func (r *Remote) rewriteRepositoryBase(repo name.Repository) (string, []name.Opt
// No rewrite needed
if mirror == "" || mirror == originalRegistry {
return repo.RepositoryStr(), nil, nil
return fmt.Sprintf("%s/%s", repo.RegistryStr(), repo.RepositoryStr()), nil, nil
}
// get mirror protocol and separate host+path