Skip to content

Commit e534193

Browse files
committed
Add ImageLayoutVersion const
Add a ImageLayoutVersion = 1.0.0 const so implementation can refer to rather than hard code in implementation just like https://github.com/containers/image/blob/master/oci/layout/oci_dest.go#L173 ``` if err := ioutil.WriteFile(d.ref.ociLayoutPath(), []byte(`{"imageLayoutVersion": "1.0.0"}`), 0644); err != nil { return err } ``` Signed-off-by: Lei Jitang <[email protected]>
1 parent 5be4024 commit e534193

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

specs-go/v1/layout.go

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

1515
package v1
1616

17+
const ImageLayoutVersion = "1.0.0"
18+
1719
// ImageLayout is the structure in the "oci-layout" file, found in the root
1820
// of an OCI Image-layout directory.
1921
type ImageLayout struct {

0 commit comments

Comments
 (0)