Problem
Karate CLI will ignore the pinned version from the configuration if a newer version was downloaded previously
Steps to reproduce
- Install the CLI
curl -fsSL https://karate.sh/install.sh | sh -s -- --all
- Create config
.karate/karate-cli.json with pinned version
{
"channel": "stable",
"karate_version": "1.5.2",
"jvm_opts": "-Xmx512m"
}
- 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
- Run a test (🐛 uses latest jar despite having the pinned jar downloaded and configured)
Result
❌ Uses latest jar version
Expected
✅ Uses pinned jar version
Problem
Karate CLI will ignore the pinned version from the configuration if a newer version was downloaded previously
Steps to reproduce
curl -fsSL https://karate.sh/install.sh | sh -s -- --all.karate/karate-cli.jsonwith pinned version{ "channel": "stable", "karate_version": "1.5.2", "jvm_opts": "-Xmx512m" }--karate-versionor it will not download anything if there is a newer jar version)Result
❌ Uses latest jar version
Expected
✅ Uses pinned jar version