{"record":{"id":"cdd71f156ad544c5","repo":"grafana/k6","slug":"invalid-dependencies-manifest-w","errorCode":null,"errorMessage":"invalid dependencies manifest %w","messagePattern":"invalid dependencies manifest %w","errorType":"validation","errorClass":null,"httpStatus":null,"severity":"error","filePath":"internal/cmd/launcher.go","lineNumber":464,"sourceCode":"\t\t\tif idx < 0 {\n\t\t\t\treturn result\n\t\t\t}\n\t\t\ti += width + idx + 2\n\t\tdefault:\n\t\t\treturn result\n\t\t}\n\t}\n\treturn result\n}\n\nfunc parseManifest(manifestString string) (dependencies, error) {\n\tif manifestString == \"\" {\n\t\treturn nil, nil //nolint:nilnil\n\t}\n\n\tmanifestMap := make(map[string]string)\n\tif err := json.Unmarshal([]byte(manifestString), &manifestMap); err != nil {\n\t\treturn nil, fmt.Errorf(\"invalid dependencies manifest %w\", err)\n\t}\n\treturn dependenciesFromMap(manifestMap)\n}\n\n// completionTimeout bounds the cache lookup for shell completion requests.\n// The build service is reachable but not guaranteed responsive; without a\n// deadline a stall would hang the shell on every TAB.\nconst completionTimeout = 3 * time.Second\n\n// completeExtension handles a shell completion request for an unregistered\n// extension subcommand. If the matching provisioned binary is already cached\n// locally, it delegates the completion request to that binary. Otherwise it\n// returns nil (no completions) so the shell does not hang waiting on a build.\nfunc completeExtension(gs *state.GlobalState, extName string, prov provisioner) error {\n\tdeps, err := dependenciesFromSubcommand(gs, extName)\n\tif err != nil {\n\t\tgs.Logger.WithError(err).Debug(\"Failed to build completion deps\")\n\t\treturn nil","sourceCodeStart":446,"sourceCodeEnd":482,"githubUrl":"https://github.com/grafana/k6/blob/8d06114777191d21ef885d05c5f8aa9e1ed838ae/internal/cmd/launcher.go#L446-L482","documentation":"Wrapped error from parseManifest: the dependencies manifest string (from the browser/module build service or options) is not valid JSON, so it cannot be unmarshalled into a name->constraint map.","triggerScenarios":"Thrown at internal/cmd/launcher.go:465 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Fix the JSON syntax of the dependencies manifest","Ensure the manifest is an object mapping dependency names to version constraints"],"exampleFix":null,"handlingStrategy":"validation","validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"8d06114777191d21ef885d05c5f8aa9e1ed838ae","analyzedAt":"2026-08-18T03:05:52.393Z","contentChangedAt":"2026-08-18T03:05:52.393Z","schemaVersion":2},"datasetVersion":"2026-09-23T08:17:48.524Z"}