Skip to content

Commit

Permalink
fix: fix CR comments
Browse files Browse the repository at this point in the history
Signed-off-by: zongz <[email protected]>
  • Loading branch information
zong-zhe committed Oct 23, 2023
1 parent d05a477 commit 2cd4e23
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg/oci/oci.go
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,7 @@ func (ociClient *OciClient) Push(localPath, tag string) *reporter.KpmEvent {
}

// PushWithManifest will push the oci artifacts to oci registry from local path
func (ociClient *OciClient) PushWithOciManifest(localPath, tag string, manifest_opts *opt.OciManifestOptions) *reporter.KpmEvent {
func (ociClient *OciClient) PushWithOciManifest(localPath, tag string, opts *opt.OciManifestOptions) *reporter.KpmEvent {
// 0. Create a file store
fs, err := file.New(filepath.Dir(localPath))
if err != nil {
Expand All @@ -232,7 +232,7 @@ func (ociClient *OciClient) PushWithOciManifest(localPath, tag string, manifest_

// 2. Pack the files, tag the packed manifest and add metadata as annotations
packOpts := oras.PackManifestOptions{
ManifestAnnotations: manifest_opts.Annotations,
ManifestAnnotations: opts.Annotations,
Layers: fileDescriptors,
}
manifestDescriptor, err := oras.PackManifest(*ociClient.ctx, fs, oras.PackManifestVersion1_1_RC4, DEFAULT_OCI_ARTIFACT_TYPE, packOpts)
Expand Down

0 comments on commit 2cd4e23

Please sign in to comment.