@@ -402,7 +402,7 @@ func (c *OciClient) packFolders(fs *file.Store, dirs []string, artifactType doma
402402 zap .String ("artifactType" , string (artifactType )),
403403 )
404404
405- fileDescriptor , err := fs .Add (ctx , name , string (artifactType ), fullPath )
405+ fileDescriptor , err := fs .Add (ctx , fullPath , string (artifactType ), fullPath )
406406 if err != nil {
407407 return []v1.Descriptor {}, err
408408 }
@@ -696,7 +696,7 @@ func (c *OciClient) Push(folder string, repo string, tag string, overrides map[s
696696 return rootManifestDescriptor , nil
697697}
698698
699- func (c * OciClient ) PushMeta (folder string , repo string ) (v1.Descriptor , error ) {
699+ func (c * OciClient ) PushMeta (scrollDir string , repo string ) (v1.Descriptor , error ) {
700700 ctx := context .Background ()
701701
702702 // Authenticate before doing any expensive local work.
@@ -708,13 +708,13 @@ func (c *OciClient) PushMeta(folder string, repo string) (v1.Descriptor, error)
708708 return v1.Descriptor {}, err
709709 }
710710
711- fs , err := file .New (folder )
711+ fs , err := file .New (scrollDir )
712712 if err != nil {
713713 return v1.Descriptor {}, err
714714 }
715715 defer fs .Close ()
716716
717- manifestDescriptors , err := c .createMetaDescriptors (fs , folder , "" )
717+ manifestDescriptors , err := c .createMetaDescriptors (fs , scrollDir , ".meta " )
718718 if err != nil {
719719 return v1.Descriptor {}, err
720720 }
0 commit comments