@@ -77,9 +77,9 @@ func Test_Pack_Default(t *testing.T) {
7777 }
7878
7979 // test created time annotation
80- createdTime , ok := manifest .Annotations [ocispec .AnnotationArtifactCreated ]
80+ createdTime , ok := manifest .Annotations [spec .AnnotationArtifactCreated ]
8181 if ! ok {
82- t .Errorf ("Annotation %s = %v, want %v" , ocispec .AnnotationArtifactCreated , ok , true )
82+ t .Errorf ("Annotation %s = %v, want %v" , spec .AnnotationArtifactCreated , ok , true )
8383 }
8484 _ , err = time .Parse (time .RFC3339 , createdTime )
8585 if err != nil {
@@ -98,7 +98,7 @@ func Test_Pack_WithOptions(t *testing.T) {
9898
9999 artifactType := "application/vnd.test"
100100 annotations := map [string ]string {
101- ocispec .AnnotationArtifactCreated : "2000-01-01T00:00:00Z" ,
101+ spec .AnnotationArtifactCreated : "2000-01-01T00:00:00Z" ,
102102 }
103103 subjectManifest := []byte (`{"layers":[]}` )
104104 subjectDesc := ocispec.Descriptor {
@@ -216,7 +216,7 @@ func Test_Pack_InvalidDateTimeFormat(t *testing.T) {
216216 ctx := context .Background ()
217217 opts := PackOptions {
218218 ManifestAnnotations : map [string ]string {
219- ocispec .AnnotationArtifactCreated : "2000/01/01 00:00:00" ,
219+ spec .AnnotationArtifactCreated : "2000/01/01 00:00:00" ,
220220 },
221221 }
222222 artifactType := "application/vnd.test"
0 commit comments