working commit
This commit is contained in:
@@ -7,9 +7,9 @@ import (
|
||||
ocispec "github.com/opencontainers/image-spec/specs-go/v1"
|
||||
)
|
||||
|
||||
func ParseOCIManifest(source []byte) (*ocispec.Manifest, error) {
|
||||
func ParseOCIManifest(rawManifest []byte) (*ocispec.Manifest, error) {
|
||||
manifest := &ocispec.Manifest{}
|
||||
err := json.Unmarshal(source, &manifest)
|
||||
err := json.Unmarshal(rawManifest, &manifest)
|
||||
if err != nil {
|
||||
err = fmt.Errorf("Manifest parsing error: %v", err)
|
||||
return manifest, err
|
||||
|
||||
Reference in New Issue
Block a user