grafana/k6 · error
invalid dependencies manifest
Error message
invalid dependencies manifest %w
What it means
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.
Solutions
- Fix the JSON syntax of the dependencies manifest
- Ensure the manifest is an object mapping dependency names to version constraints
Defensive patterns
Strategy: validation
When it happens
Trigger: Thrown at internal/cmd/launcher.go:465 when the library encounters an invalid state.
Common situations: See trigger scenarios.
AI-assisted analysis of grafana/k6@8d06114777 (2026-08-18).
Data as JSON: /api/errors/cdd71f156ad544c5.
Report an issue: GitHub.
Appendix: source
Thrown at internal/cmd/launcher.go:464
if idx < 0 {
return result
}
i += width + idx + 2
default:
return result
}
}
return result
}
func parseManifest(manifestString string) (dependencies, error) {
if manifestString == "" {
return nil, nil //nolint:nilnil
}
manifestMap := make(map[string]string)
if err := json.Unmarshal([]byte(manifestString), &manifestMap); err != nil {
return nil, fmt.Errorf("invalid dependencies manifest %w", err)
}
return dependenciesFromMap(manifestMap)
}
// completionTimeout bounds the cache lookup for shell completion requests.
// The build service is reachable but not guaranteed responsive; without a
// deadline a stall would hang the shell on every TAB.
const completionTimeout = 3 * time.Second
// completeExtension handles a shell completion request for an unregistered
// extension subcommand. If the matching provisioned binary is already cached
// locally, it delegates the completion request to that binary. Otherwise it
// returns nil (no completions) so the shell does not hang waiting on a build.
func completeExtension(gs *state.GlobalState, extName string, prov provisioner) error {
deps, err := dependenciesFromSubcommand(gs, extName)
if err != nil {
gs.Logger.WithError(err).Debug("Failed to build completion deps")
return nilView on GitHub (pinned to 8d06114777)