{"record":{"id":"acea4ea18dff49bd","repo":"hashicorp/packer","slug":"manifest-json-for-version-s-declares-no-protocol","errorCode":null,"errorMessage":"manifest.json for version %s declares no protocol_version","messagePattern":"manifest\\.json for version (.+?) declares no protocol_version","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"packer/plugin-getter/remote/getter.go","lineNumber":206,"sourceCode":"}\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 {\n\t\t\treturn nil, err\n\t\t}\n\t\treturn idx.releasesStream()","sourceCodeStart":188,"sourceCodeEnd":224,"githubUrl":"https://github.com/hashicorp/packer/blob/eb36e3c3e48a036f3e8cc94087636ee72e1303c9/packer/plugin-getter/remote/getter.go#L188-L224","documentation":"Remote-mirror getter error from resolveProtocolVersion: manifest.json parsed fine but contains no protocol_version field, so Packer can't determine whether the plugin is compatible. Happens with older manifests or hand-crafted mirror files.","triggerScenarios":"Thrown at packer/plugin-getter/remote/getter.go:206 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Serve the official manifest.json from releases.hashicorp.com which includes protocol_version","Use a plugin release new enough to publish protocol metadata"],"exampleFix":null,"handlingStrategy":"validation","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"}