{"record":{"id":"195985cd5b195f81","repo":"hashicorp/packer","slug":"malformed-manifest-json-for-version-s-w","errorCode":null,"errorMessage":"malformed manifest.json for version %s: %w","messagePattern":"malformed manifest\\.json for version (.+?): %w","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"packer/plugin-getter/remote/getter.go","lineNumber":203,"sourceCode":"\t\t\tversion, idx.pluginType, g.BaseURL, dir)\n\t}\n\treturn idx, g.BaseURL + \"/\" + dir + \"/\" + version, nil\n}\n\n// resolveProtocolVersion reads the plugin protocol version from a version's\n// manifest.json and caches it for Validate.\nfunc (g *Getter) resolveProtocolVersion(versionURL, pluginType, version string) error {\n\tif _, ok := g.protVersions[version]; ok {\n\t\treturn nil\n\t}\n\tdata, err := g.fetch(versionURL + \"/\" + pluginType + \"_\" + version + \"_manifest.json\")\n\tif err != nil {\n\t\treturn fmt.Errorf(\n\t\t\t\"%w\\nThe checksum entries of this version carry no plugin protocol version in their names, so the mirrored version must include its manifest.json, as published on releases.hashicorp.com\", err)\n\t}\n\tvar meta plugingetter.ManifestMeta\n\tif err := json.Unmarshal(data, &meta); err != nil {\n\t\treturn fmt.Errorf(\"malformed manifest.json for version %s: %w\", version, err)\n\t}\n\tif meta.Metadata.ProtocolVersion == \"\" {\n\t\treturn fmt.Errorf(\"manifest.json for version %s declares no protocol_version\", version)\n\t}\n\tif g.protVersions == nil {\n\t\tg.protVersions = map[string]string{}\n\t}\n\tg.protVersions[version] = \"x\" + meta.Metadata.ProtocolVersion\n\treturn nil\n}\n\nfunc (g *Getter) Get(what string, opts plugingetter.GetOptions) (io.ReadCloser, error) {\n\tlog.Printf(\"[TRACE] Getting %s of %s plugin from %s\", what, opts.PluginRequirement.Identifier, g.Name)\n\n\tswitch what {\n\tcase \"releases\":\n\t\tidx, _, err := g.loadIndex(opts)\n\t\tif err != nil {","sourceCodeStart":185,"sourceCodeEnd":221,"githubUrl":"https://github.com/hashicorp/packer/blob/eb36e3c3e48a036f3e8cc94087636ee72e1303c9/packer/plugin-getter/remote/getter.go#L185-L221","documentation":"resolveProtocolVersion downloads a plugin version's manifest.json and parses it to cache the plugin protocol version used by Validate. This error fires when the fetched manifest is unparseable or structurally invalid (e.g. missing/ill-formed checksum entries), wrapped with the underlying cause. It usually indicates a corrupted or non-standard release published for that plugin version; reinstall the plugin or use a different version.","triggerScenarios":"Thrown at packer/plugin-getter/remote/getter.go:203 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Fix or replace the mirror's manifest.json with the file published on releases.hashicorp.com","Bypass the mirror and install from the official release endpoint"],"exampleFix":null,"handlingStrategy":"try-catch","validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"eb36e3c3e48a036f3e8cc94087636ee72e1303c9","analyzedAt":"2026-09-05T13:20:43.127Z","contentChangedAt":"2026-09-05T13:20:43.127Z","schemaVersion":2},"datasetVersion":"2026-09-12T17:17:11.597Z"}