Fix unmaarshal of double pointer (#47586)

* Fix unmaarshal of double pointer

* update sdk version
This commit is contained in:
ying-jeanne
2022-04-12 09:30:34 +02:00
committed by GitHub
parent 42431e6ad4
commit 0bf889e058
9 changed files with 20 additions and 15 deletions
+2 -2
View File
@@ -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) {