{
  "slug": "k6-run-supports-a-dependency-manifest-for-default-version-constraints-1acb14c9aea2",
  "title": "k6 run supports a dependency manifest for default version constraints",
  "tools": [
    "k6"
  ],
  "tags": [
    "agent"
  ],
  "introduced_at": "2026-02-10T09:12:21.000Z",
  "announced_at": "2026-02-10T09:12:21.000Z",
  "effective_at": null,
  "date_basis": "source-publication",
  "status": "unknown",
  "how": {
    "incantation": "When an imported dependency has no version constraint in the script, set `K6_DEPENDENCIES_MANIFEST` to a JSON map of dependency names to constraints and run the script. The manifest supplies a default only for imported dependencies without an explicit version or `use k6 with` directive.",
    "examples": [
      "K6_DEPENDENCIES_MANIFEST='{\"k6/x/faker\": \">=v0.4.4\"}' k6 run <script.js>"
    ],
    "gotchas": [
      "Version: v1.6.0",
      "K6_DEPENDENCIES_MANIFEST: Environment variable containing a JSON object whose keys are dependency names and whose values are version constraints; it replaces the default `*` constraint when the imported dependency has no version defined in script pragmas.",
      "dependency name (JSON key) (required): Name of a dependency imported by the script, such as `k6/x/faker`; entries do not affect dependencies the script does not import.",
      "constraint (JSON value) (required): Version constraint to apply to that imported dependency when the script does not define its version using pragmas.",
      "k6 run <script.js> (required): Runs the script with the manifest environment variable set in the invocation.",
      "The manifest does not change anything for a dependency that is not imported by the script.",
      "The manifest supplies defaults when a dependency has no version defined in the script using pragmas."
    ]
  },
  "why_it_matters": "Run a script with imported dependencies that lack explicit version constraints and need manifest-specified constraints.",
  "before": "An imported dependency without an explicit version defaults to `\"*\"`.",
  "sources": [
    "https://github.com/grafana/k6/releases/tag/v1.6.0"
  ],
  "rank": 0.94026,
  "judge": {
    "publish": true,
    "judge_model": "codex-cli/gpt-6-luna+typesafe/jev-1.13.0",
    "prompt_version": "extract-v7+enrich-v2+judge-v2x3+jev-publish-v1"
  },
  "review_state": "approved",
  "provenance": {
    "run_id": "wave2a-20261017",
    "verdict_id": "wave2a-20261017:wave2a-20261017-4d59ff63232066fe-2:gate",
    "evidence_hash": "214d637601ab12859a942e0dfb0964627863702fc979acbb4c496833c029e4b8"
  },
  "review": {
    "draft_hash": "31be749bf87b99364687153228efbae6dfaefd0ce853d0eeac33b8e102d93f42",
    "reviewer": "publication-gate",
    "reviewed_at": "2026-10-07T00:00:00.000Z",
    "decision": "wave2a-20261017:gate",
    "reason": "3 of 3 judge runs approved with p_yes >= 0.9 (mean 0.94 >= 0.9; 2 needed) and Jev gave 0.71 (>= 0.6 needed)."
  }
}
