Skip to content

[BUG] Pinned version not respected by CLI #4

Description

@steve1337

Problem

Karate CLI will ignore the pinned version from the configuration if a newer version was downloaded previously

Steps to reproduce

  1. Install the CLI
curl -fsSL https://karate.sh/install.sh | sh -s -- --all
  1. Create config .karate/karate-cli.json with pinned version
{
    "channel": "stable",
    "karate_version": "1.5.2",
    "jvm_opts": "-Xmx512m"
}
  1. Install pinned version (🐛 requires --karate-version or it will not download anything if there is a newer jar version)
karate setup --item jar --karate-version 1.5.2
  1. Run a test (🐛 uses latest jar despite having the pinned jar downloaded and configured)
karate test.feature

Result

❌ Uses latest jar version

Expected

✅ Uses pinned jar version

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions