mirror of
https://github.com/linuxkit/linuxkit.git
synced 2025-10-25 08:53:49 +00:00
fix build when pulling from non-default registry
Signed-off-by: Avi Deitcher <avi@deitcher.net>
This commit is contained in:
committed by
Avi Deitcher
parent
4c81a1408b
commit
a8cf7dabec
@@ -291,7 +291,7 @@ func (r *Remote) rewriteRepositoryBase(repo name.Repository) (string, []name.Opt
|
|||||||
|
|
||||||
// No rewrite needed
|
// No rewrite needed
|
||||||
if mirror == "" || mirror == originalRegistry {
|
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
|
// get mirror protocol and separate host+path
|
||||||
|
|||||||
Reference in New Issue
Block a user