update go-containerregistry so that kaniko works nicely with Harbor or Gitlab. (#227)
This commit is contained in:
parent
65d7b0a9aa
commit
19287f89c5
|
|
@ -441,7 +441,7 @@
|
|||
"pkg/v1/types",
|
||||
"pkg/v1/v1util"
|
||||
]
|
||||
revision = "3f6471078a9661a9a439bd5e71a371aff429566a"
|
||||
revision = "d54baf9aa28edb9b985a6b35b57e26e3410c2443"
|
||||
|
||||
[[projects]]
|
||||
name = "github.com/googleapis/gax-go"
|
||||
|
|
|
|||
|
|
@ -145,7 +145,9 @@ func (w *writer) initiateUpload(h v1.Hash) (location string, mounted bool, err e
|
|||
// if "mount" is specified, even if no "from" sources are specified. If this turns out
|
||||
// to not be broadly applicable then we should replace mounts without "from"s with a HEAD.
|
||||
if ml, ok := l.(*MountableLayer); ok {
|
||||
uv["from"] = []string{ml.Reference.Context().RepositoryStr()}
|
||||
if w.ref.Context().RegistryStr() == ml.Reference.Context().RegistryStr() {
|
||||
uv["from"] = []string{ml.Reference.Context().RepositoryStr()}
|
||||
}
|
||||
}
|
||||
u.RawQuery = uv.Encode()
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue