зеркало из https://github.com/microsoft/docker.git
Merge pull request #30169 from runcom/fix-quoting
image: tarexport: do not quote integers in format string
This commit is contained in:
Коммит
957a77f2e2
|
@ -85,7 +85,7 @@ func (l *tarexporter) Load(inTar io.ReadCloser, outStream io.Writer, quiet bool)
|
||||||
rootFS.DiffIDs = nil
|
rootFS.DiffIDs = nil
|
||||||
|
|
||||||
if expected, actual := len(m.Layers), len(img.RootFS.DiffIDs); expected != actual {
|
if expected, actual := len(m.Layers), len(img.RootFS.DiffIDs); expected != actual {
|
||||||
return fmt.Errorf("invalid manifest, layers length mismatch: expected %q, got %q", expected, actual)
|
return fmt.Errorf("invalid manifest, layers length mismatch: expected %d, got %d", expected, actual)
|
||||||
}
|
}
|
||||||
|
|
||||||
for i, diffID := range img.RootFS.DiffIDs {
|
for i, diffID := range img.RootFS.DiffIDs {
|
||||||
|
|
Загрузка…
Ссылка в новой задаче