* Fix unmaarshal of double pointer
* update sdk version
(cherry picked from commit 0bf889e058)
Co-authored-by: ying-jeanne <74549700+ying-jeanne@users.noreply.github.com>
This commit is contained in:
co-authored by
ying-jeanne
parent
be54ab63cb
commit
bd76bd0d0e
@@ -82,7 +82,7 @@ func readPluginManifest(body []byte) (*pluginManifest, error) {
|
||||
}
|
||||
|
||||
// Convert to a well typed object
|
||||
manifest := &pluginManifest{}
|
||||
var manifest pluginManifest
|
||||
err := json.Unmarshal(block.Plaintext, &manifest)
|
||||
if err != nil {
|
||||
return nil, errutil.Wrap("Error parsing manifest JSON", err)
|
||||
@@ -99,7 +99,7 @@ func readPluginManifest(body []byte) (*pluginManifest, error) {
|
||||
return nil, errutil.Wrap("failed to check signature", err)
|
||||
}
|
||||
|
||||
return manifest, nil
|
||||
return &manifest, nil
|
||||
}
|
||||
|
||||
func Calculate(mlog log.Logger, plugin *plugins.Plugin) (plugins.Signature, error) {
|
||||
|
||||
Reference in New Issue
Block a user