Skip to content

Commit bfc49af

Browse files
authored
Merge pull request #617 from stevvooe/correct-field-type
specs-go/v1: use correct field type for diff ids
2 parents 28d37d4 + d858089 commit bfc49af

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

specs-go/v1/config.go

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,11 @@
1414

1515
package v1
1616

17-
import "time"
17+
import (
18+
"time"
19+
20+
digest "github.com/opencontainers/go-digest"
21+
)
1822

1923
// ImageConfig defines the execution parameters which should be used as a base when running a container using an image.
2024
type ImageConfig struct {
@@ -52,7 +56,7 @@ type RootFS struct {
5256
Type string `json:"type"`
5357

5458
// DiffIDs is an array of layer content hashes (DiffIDs), in order from bottom-most to top-most.
55-
DiffIDs []string `json:"diff_ids"`
59+
DiffIDs []digest.Digest `json:"diff_ids"`
5660
}
5761

5862
// History describes the history of a layer.

0 commit comments

Comments
 (0)