@@ -70,7 +70,7 @@ private Index(
7070 @ JsonProperty (Const .JSON_PROPERTY_MANIFESTS ) List <ManifestDescriptor > manifests ,
7171 @ JsonProperty (Const .JSON_PROPERTY_ANNOTATIONS ) Map <String , String > annotations ,
7272 @ JsonProperty (Const .JSON_PROPERTY_SUBJECT ) Subject subject ) {
73- this (schemaVersion , mediaType , artifactType , manifests , annotations , subject , null , null );
73+ this (schemaVersion , mediaType , artifactType , manifests , annotations , subject , null , null , null );
7474 }
7575
7676 private Index (
@@ -81,8 +81,9 @@ private Index(
8181 Map <String , String > annotations ,
8282 Subject subject ,
8383 ManifestDescriptor descriptor ,
84+ String registry ,
8485 String json ) {
85- super (null , null , mediaType , annotations , artifactType , json );
86+ super (null , null , mediaType , annotations , artifactType , registry , json );
8687 this .schemaVersion = schemaVersion ;
8788 this .descriptor = descriptor ;
8889 this .subject = subject ;
@@ -183,7 +184,8 @@ public Index withNewManifests(ManifestDescriptor manifest) {
183184 newManifests .add (ManifestDescriptor .fromJson (descriptor .toJson ()));
184185 }
185186 newManifests .add (manifest );
186- return new Index (schemaVersion , mediaType , artifactType , newManifests , annotations , subject , descriptor , json );
187+ return new Index (
188+ schemaVersion , mediaType , artifactType , newManifests , annotations , subject , descriptor , registry , json );
187189 }
188190
189191 @ Override
@@ -209,7 +211,8 @@ public ManifestDescriptor getDescriptor() {
209211 * @return The manifest
210212 */
211213 public Index withDescriptor (ManifestDescriptor descriptor ) {
212- return new Index (schemaVersion , mediaType , artifactType , manifests , annotations , subject , descriptor , json );
214+ return new Index (
215+ schemaVersion , mediaType , artifactType , manifests , annotations , subject , descriptor , registry , json );
213216 }
214217
215218 /**
@@ -233,7 +236,8 @@ public Subject getSubject() {
233236 * @return The index
234237 */
235238 public Index withSubject (Subject subject ) {
236- return new Index (schemaVersion , mediaType , artifactType , manifests , annotations , subject , descriptor , json );
239+ return new Index (
240+ schemaVersion , mediaType , artifactType , manifests , annotations , subject , descriptor , registry , json );
237241 }
238242
239243 /**
@@ -260,7 +264,7 @@ public static Index fromPath(Path path) {
260264 * @return The index
261265 */
262266 public static Index fromManifests (List <ManifestDescriptor > descriptors ) {
263- return new Index (2 , Const .DEFAULT_INDEX_MEDIA_TYPE , null , descriptors , null , null , null , null );
267+ return new Index (2 , Const .DEFAULT_INDEX_MEDIA_TYPE , null , descriptors , null , null , null , null , null );
264268 }
265269
266270 @ Override
0 commit comments